twilio / authy-java

Java Client for Twilio Authy Two-Factor Authentication (2FA) API
https://www.twilio.com/docs/authy/api
MIT License
65 stars 46 forks source link

Get same code in JAVA, like I receive code in Authy application on phone. #24

Closed GoldenScrew closed 6 years ago

GoldenScrew commented 8 years ago

Hello, really need help, I am novice in programming, also my English is bad and I have big problem in understanding (in russian language no information about it). But I need receive same code (SoftToken), like I receive in my application Authy on phone. Is authy-java for me? If so, where I should find this your-api-key? I want solve this: http://stackoverflow.com/questions/39151880/get-same-two-factor-code-like-i-received-in-my-app-authy-in-java

Also, when I try use authy-java with code:

AuthyApiClient client = new AuthyApiClient("INVALID_API_KEY", "https://api.authy.com/");
System.out.println(client.getUsers().toString());

I haven't error, but my api_key is invalid, why?

suarezjulian commented 6 years ago

Hi @GoldenScrew please check our documentation page https://www.twilio.com/docs/api/authy/authy-totp to understand how to authenticate and get a valid API key