• Register
0 votes

Problem :

According to the following documents:


I have the oauth user token and the user token secret, plus I have my app credentials...

The docs state that the authentication is supported by Twitter, but how should I include it in the get requests for screen names those are not publicly accessible?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

If I understand your question correctly, you need to be able to get the tweets from a third-party user who is with the OAuth token and having the secrets belonging to a user on your site. And the tweets from the third-party users are not obviously publicly accessible, but your user is having all the access rights to them. Am I correct?

So if you need to access private resources on behalf of your user, you must  sign the request with the OAuth token and with your application credentials. Then the Twitter can check, which user is signed in to your site and if the user have given your site the required access rights.

Then that signature is sent within the header of your GET request in a format as following:


OAuth oauth_consumer_key="xvz1evFS4wEEPTGEFPHBog", oauth_nonce="kYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg", oauth_signature="tnnArxj06cWHq44gCs1OSKk%2FjLY%3D", 

Further Readings :

There is also documentation from Twitter on how to calculate the signature as follows:


9 7 4
38,600 points

Related questions

0 votes
1 answer 19 views
Problem: Could not connect to twitter. refresh the page or try again later.
asked Feb 13 Shovo210 13.8k points
0 votes
1 answer 4 views
Problem: Want to have a quick solution of this please. Google sheets see who edited a cell.
asked Mar 23 PkGuy 13.1k points
0 votes
1 answer 3 views
Problem: Please help me to solve it. how to see who liked my tweet
asked Mar 22 Ifra 24.4k points
0 votes
1 answer 611 views
Problem : Currently I am trying to display a JSON content using a API key. But I am unable to get a authentication. I am facing below error in my JsonObject: “Org.json.JSONException: Value Authorization of type java.lang.String cannot be converted to JSONObject” In my ... to pass a API key and URL id to get my JSON response in a URL. I display a JSON content using a JSON array.
asked Feb 2, 2020 jwilliam 3.9k points
0 votes
1 answer 673 views
Problem : I am facing error “Expecting value: line 1 column 1 (char 0)” when trying to decode the JSON.The URL I use for a API call works fine in a browser, but gives above error when done through the curl request. The error happens at the return simplejson.loads(response_json)
asked Jan 20, 2020 jwilliam 3.9k points
0 votes
1 answer 719 views
Problem : ERROR :Your client does not have permission to get URL
asked Feb 26 Shovo210 13.8k points
0 votes
1 answer 6 views
Problem: Can anyone tell me the solution of this problem? errors code 215 message bad authentication data
asked Mar 22 Ifra 24.4k points
0 votes
1 answer 1 view
1 view
Problem: Can anyone help me? Thank you in advance.
asked 2 days ago niyatiry 3.2k points
0 votes
1 answer 2 views
Problem: Someone know how to know who unfollowed me on twitter?
asked Mar 30 zayed1 35.6k points
0 votes
1 answer 4 views
Problem: I will request someone to answer my question Please, I have searched on the web but I got no useful information for this, now I am in difficulty continuing my learning
asked Mar 24 shamimkhan 15.1k points