Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Handle Twitter Digits API for Web

I'm working on twitter digits api to integrate it to my website which needs to verify user's uniqueness.

Here is a link, it's the only article which illustrate officially how to implement digits for web.

In the article, I find the fact that I have to care for web server unlike Digits for IOS. But NO INFORMATION about What should I do on my web server!

What should I write in PHP for server side programming to obtain user ID and Phone Number??

like image 865
Kazuyoshi Abe Avatar asked Mar 01 '15 10:03

Kazuyoshi Abe


1 Answers

In the demo, http://s.codepen.io/digits/debug/gbrgYV

after you log in, it shows a curl command.

Use the response data to reproduce it in your server side and it will give you a response with the phone number and the ID.

Although, i don't know why, when the phone number is new, it takes a while to return you the phone number.

like image 179
David F Avatar answered Oct 09 '22 01:10

David F