src/Token.php
public function verify($token, $authyId, $force = false, $action = null): Response
    {
        // Prepare required variables
        $url = $this->api."verify/{$token}/{$authyId}";
        $params = $this->params + ['query' => ['force' => $force ? 'true' : 'false', 'action' => $action]];

        // Verify Authy token
        return new Response($this->http->get($url, $params));
    }
public function verify($token, $authyId, $force = false, $action = null): Response
    {
        // Prepare required variables
        $url = $this->api."verify/{$token}/{$authyId}";
        $params = $this->params + ['query' => ['force' => $force ? 'true' : 'false', 'action' => $action]];

        // Verify Authy token
        return new Response($this->http->get($url, $params));
    }
public function verify ( $ token , $ authyId , $ force = false , $ action = null ) : Response { // Prepare required variables $ url = $ this -> api . "verify/{$token}/{$authyId}" ; $ params = $ this -> params + [ 'query' => [ 'force' => $ force ? 'true' : 'false' , 'action' => $ action ] ] ; // Verify Authy token return new Response ( $ this -> http -> get ( $ url , $ params ) ) ; }
Verify the given token for the given Authy user.

@param int         $token
@param int         $authyId
@param bool        $force
@param string|null $action

@return \Rinvex\Authy\Response
Verify the given token for the given Authy user .