twilio / authy-php

A PHP client for Authy
245 stars 87 forks source link

Update README.md #73

Closed lubwen closed 5 years ago

lubwen commented 5 years ago

The following instruction is not valid because 'id' is a protected variable: store user->id in your user database The correct way is: store user->bodyvar('id') in your user database

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

robinske commented 5 years ago

Thank you for this @lubwen - I just moved the code samples to the Twilio docs, id() should work in the latest version for retrieving the authy_id.

Check out https://www.twilio.com/docs/authy/api/users?code-sample=code-create-an-authy-user-5&code-language=PHP&code-sdk-version=default and let us know if you have other questions.