Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sucesscall back #6

Open
pierrehalleux opened this issue Oct 27, 2015 · 13 comments
Open

Sucesscall back #6

pierrehalleux opened this issue Oct 27, 2015 · 13 comments

Comments

@pierrehalleux
Copy link

Hi,

Do you know how to get phonenumber in sucesscall back function?
Do you have full html code example ?

Thanks a ton! :)

@yangli-io
Copy link
Owner

No, unfortunately phone number is user sensitive data and twitter will not give it back to us. You can however get the phone number through another Cordova package,
cordova plugin add com.simonmacdonald.telephonenumber

@pierrehalleux
Copy link
Author

Hi thanks for you quick answer :)
But this package won't work on iOS devlopper told me :/ is that right ?

@yangli-io
Copy link
Owner

As far as I know, it works on iOS. The main problem might be getting it approved in the app store

@pierrehalleux
Copy link
Author

Indeed :/ do you see a possible work around to be sure to have it approved on store ?

Thanks a lot

Pierre

Sent from my iPhone

On 27 oct. 2015, at 23:23, Yang Li [email protected] wrote:

As far as I know, it works on iOS. The main problem might be getting it approved in the app store


Reply to this email directly or view it on GitHub.

@yangli-io
Copy link
Owner

Depends on why you would need the users phone number, you could simply add a input field and ask them for it. If you have a legitimate reason for needing the users phone number then im sure apple would approve.

@Ajay1412
Copy link

Please check this link
https://docs.fabric.io/web/digits/getting-started.html#set-up-digits-authentication

There is mentioned:
From your web server, over SSL, you can use this response to securely request the userID, phone number, and oAuth tokens of the Digits user. With this approach there is no need to configure OAuth signing, or configure and host a callback url for Digits.

So here is mentioned we can access phonenumber.but i am not getting how we can.
In success call back function i am getting i.e

{
"oauth_echo_headers":{
"X-Verify-Credentials-Authorization":"OAuth oauth_consumer_key="F1vVaDqvmTQbtoxYhzR6baV55",
oauth_nonce="3733735153-f00HtJyPmqKlqQTewerDRudlqvjbtXUfOrji9cDF1vVaDqvmTQbtoxYhzR6baV551445321536239", oauth_signature="ksouZ54Nb2LC6EOfTWYqKaC3iLs=",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="1445321536",
oauth_token="3733735153-f00HtJyPmqKlqQTewerDRudlqvjbtXUfOrji9cD", oauth_version="1.0"",
"X-Auth-Service-Provider":"https://api.digits.com/1.1/sdk/account.json"
}
}

Can you give example how we can access phonenumber ?

@yangli-io
Copy link
Owner

You will need to send that json to your backend and have your backend communicate with twitter digits. Digits will send you back a phone number to your backend.

@Ajay1412
Copy link

Ajay1412 commented Nov 2, 2015

Please send example code by which i can get phonenumber

@pierrehalleux
Copy link
Author

@yangli1990 yangli1990 could you please help :)?
💯 thanks

@yangli-io
Copy link
Owner

Can you wait 2 days? I'll build an example. I've got a lot on my plate right now.

@Ajay1412
Copy link

ok

@anandhakumarr
Copy link

@yangli1990 I was struck with this please upload some sample application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Ajay1412 @anandhakumarr @yangli-io @pierrehalleux and others