src/User.php
public function registerActivity($authyId, $type, $data, $ip = null): Response
    {
        // Prepare required variables
        $url = $this->api."users/{$authyId}/register_activity";
        $params = $this->params + ['form_params' => ['type' => $type, 'data' => $data, 'user_ip' => $ip]];

        // Register Authy user activity, and return response
        return new Response($this->http->post($url, $params));
    }
public function registerActivity($authyId, $type, $data, $ip = null): Response
    {
        // Prepare required variables
        $url = $this->api."users/{$authyId}/register_activity";
        $params = $this->params + ['form_params' => ['type' => $type, 'data' => $data, 'user_ip' => $ip]];

        // Register Authy user activity, and return response
        return new Response($this->http->post($url, $params));
    }
public function registerActivity ( $ authyId , $ type , $ data , $ ip = null ) : Response { // Prepare required variables $ url = $ this -> api . "users/{$authyId}/register_activity" ; $ params = $ this -> params + [ 'form_params' => [ 'type' => $ type , 'data' => $ data , 'user_ip' => $ ip ] ] ; // Register Authy user activity, and return response return new Response ( $ this -> http -> post ( $ url , $ params ) ) ; }
Register the given user activity.

@param int         $authyId
@param string      $type
@param string      $data
@param string|null $ip

@return \Rinvex\Authy\Response
Register the given user activity .