Function authy::api::user::register_activity [] [src]

pub fn register_activity(
    client: &Client,
    id: u32,
    data: Option<&HashMap<&str, String>>,
    activity_type: ActivityType,
    user_ip: &str
) -> Result<Status, AuthyError>

Register user activity with authy.

Optionally you can register some of the activities that your user do on your application. This helps us to identify fraudulent behaviours. For example if you register that a user reset his password and then he tries to change his phone with Authy we can know that something weird is happening.

Please see the Authy documentation for more details: https://www.twilio.com/docs/api/authy/authy-totp#register-user-activities