Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Added locale information in README.md #37

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -83,6 +83,14 @@ the SMS pass force=true as an option
response = Authy::API.request_sms(:id => user.authy_id, :force => true)
```

If you wish to send SMS in a specific language, you can provide locale information in the params as shown below.

```ruby
response = Authy::API.request_sms(:id => user.authy_id, :force => true, :locale => 'es')
```

If the locale that you provide is wrong or does not match, the SMS will be sent in english.

## Requesting token via a phone call

`Authy::API.request_phone_call` takes the authy_id that you want to deliver the token by a phone call. This requires Authy Calls addon, please contact us to support@authy.com to enable this addon.
Expand Down