I need to create a Twitter application to access the public API and collect data for my Master thesis. But I'm unable to do so due to the restriction about having to verify the account by entering my phone number.
my country isn't even listed! how can I solve this problem?
Related
How would you pull info from another app on the users phone. For example if I wanted to take all the emails a user has on their google inbox app or all the transactions from the users chase app and display them, how would I do that?
I understand first you'd need the user to sign in to their app Im sure I can manage how to figure out that. But how would I pull their data to my app and display it?
You would have to use an API for the app you are trying to pull information from. Google offers an API for Gmail and it is possible to access bank information through an API (see Is there an API to get bank transaction and bank balance?).
Although, if you are developing two apps on the same team you can use Keychain Sharing and App Groups to share data between your own apps.
I am using google's oauth2 to allow users to register/login into my site (php library). The first time a user attempts to login I get the user's email address and google+ id which are provided by the Google OAuth2 API (with the user's permission).
In a different part of the site I need some information from the user's youtube channel. I am using the incremental authorization to get the extra permissions as it is recommended (and described here: https://developers.google.com/identity/protocols/OAuth2WebServer#incrementalAuth ).
The problem is that I don't have a unique identifier for the user between the calls, in order to keep track of him/her in my side of the application. A user, for example might have multiple youtube channels and each one can be associated with a different google+ account/id and a different email address, which most of the time is not a real address but a provided email with the format 'username-XXXX#plus.google.com'.
I was wondering if google's apis can return a unique identifier for the 'parent' account of a user across different apis.
Thanks in advance.
I would like to know what access token I require to achieve the following.
My Meteor app crawls various RSS feeds and makes a daily digest. I would like to automatically tweet about the daily digest when it is created, using the app's Twitter account.
As I see, in the doc, it seems that I need to use application owner access token and create my app using the app's Twitter account. Is this a correct approach?
Yes, that's correct. It's quite simple too.
Go to Twitter Apps and login with your regular twitter account
assuming you have one, if not you need to create one.
Once signed in click on Create New App button.
Fill out the application (Name, description, and whatever else it requires).
Create your key and access tokens. Share those with users that you trust as they'll be used to access the twitter API to read/write information.
Give the application you created a "Read and Write" permission based on what you asked in the question.
Then depending on the software/language you use there's a plenty of existing packages that can help you access and obtain the information from the API.
I am trying to fetch Contacts in my account using the Google Contacts API in a command line app. The only oAuth option that makes sense for my command-line drive open source application (http://asynk.io/) is the Service Account model. The recent shutdown of the ClientLogin functionality without adequate documentation or support on how to use Service Account authentication is quite painful. I have not managed to get my code to work again.
I am using the following code to access my contacts. The rest of my code to pull contacts / folders remains the same. However now I am not getting any of the contacts in my account.
em = self.get_client_email()
key = self.get_private_key()
scope = 'https://www.google.com/m8/feeds'
gdc = gdata.contacts.client.ContactsClient(source='ASynK')
credentials = SignedJwtAssertionCredentials(em, key, scope)
auth2token = gdata.gauth.OAuth2TokenFromCredentials(credentials)
auth2token.authorize(gdc)
I have seen other questions similar to this, and the earlier problems were supposedly related to the Contacts API not being available in the API Console. However that is not the case now. I can see Contacts API on that console and it is enabled for my account.
Has anyone managed to successfully use the Contacts API after the ClientLogin was shutdown?
EDIT
From further research it appears like it the contacts accessible via the Service Account linked to a normal gmail.com address is for that app itself,and not of that linked account, which is bizarre from my point of view.
I am currently working out of india and am trying to get to make my app post on behalf of my Twitter user account. However, for me to be able to do this, I need to create write access to my app on twitter, which I tried to. Unfortunately, twitter gives me the following error:
Error
You must add your mobile phone to your Twitter profile before granting your application write capabilities. Please read https://support.twitter.com/articles/110250-adding-your-mobile-number-to-your-account-via-web for more information
Now, I tried to add my mobile phone number following these instructions. Twitter, does not support any of the Indian mobile carriers in order to authenticate the same.
Is there a work around? Is there any way I can make write access work from here?
There are two ways to do this.
The official way to do this is to contact the Twitter API team directly using this form https://support.twitter.com/forms/platform
The unofficial way is
Authenticate against mobile.twitter.com (use your phone or computer).
Go to Settings
Go to Phone
Add
Add your mobile
A "manage" link should be available
All being well, you'll get a confirmation SMS
I've not tried this method - but I have seen other people say it works.