twitter-oauth

Adding media_ids to Twitter API call causes authentication issue

核能气质少年 提交于 2021-02-08 06:55:20
问题 I have a simple web page which can create a text-only tweet through the Twitter REST API at https://api.twitter.com/1.1/statuses/update.json sucessfully. I am also able to upload a JPG image to Twitter with https://upload.twitter.com/1.1/media/upload.json and get back a numeric media_id successfully. What I cannot do is put these two together to create an image tweet: it gets HTTP status code 401 if I add in the media_id! I am using ASP.NET (I have both VB and C# examples) but I expect the

TwitteR r package: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found

北战南征 提交于 2021-02-07 13:46:58
问题 I have updated my OS to Ubuntu 18.04 recently and twitteR R package is not working anymore. I am having the following error message during setup_twitter_oauth . > setup_twitter_oauth(api_key,api_secret) [1] "Using browser based authentication" Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/home/my-laptop/R/x86_64-pc-linux-gnu-library/3.4/curl/libs/curl.so': /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /home/my-laptop

Not able to register webhook via postman in twitter app

非 Y 不嫁゛ 提交于 2021-02-07 09:00:32
问题 https://api.twitter.com/1.1/account_activity/all/prod/webhooks.json?url=https://test.com not working I have followed all steps to create a new application and getting consumer key, secret keys and also token details and try to create webhook via postman. I am getting follwing error { "errors": [ { "code": 32, "message": "Could not authenticate you." } ] } I have tried delete and get methods for webhook and it is working fine. 回答1: They probably goofed in their example. You just need to move

Twitter premium not authorized

梦想的初衷 提交于 2021-02-05 06:00:11
问题 I attempted to run the code below and am getting an error that states: HTTP Error code: 403: Forbidden: Authentication succeeded but account is not authorized to access this resource. from searchtweets import ResultStream, gen_rule_payload, load_credentials, collect_results import requests premium_search_args = load_credentials("/home/dirname/twitter_keys.yaml", yaml_key="search_tweets_premium", env_overwrite=False) rule = gen_rule_payload("basketball", results_per_call=100) # testing with a

Post photo to Twitter using Curl and Windows command line

限于喜欢 提交于 2021-01-29 12:57:37
问题 I am using Curl to post to the Twitter API via the Windows command line. I've already generated the oAuth headers and can post a tweet without a photo using: curl -k -X POST "https://api.twitter.com/1.1/statuses/update.json" -d "status=Test" -H "Authorization: OAuth oauth_consumer_key=\"xxxxxxxxxxxxxxxxxxx\", oauth_nonce=\"xxxxxxxxxxxxxxxxxxxxxxx\", oauth_signature=\"xxxxxxxxxxxxxxxxxxx\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"xxxxxxxxxx\", oauth_token=\"xxxxxxxxxxxxxxxxx\",

Post photo to Twitter using Curl and Windows command line

人盡茶涼 提交于 2021-01-29 12:28:18
问题 I am using Curl to post to the Twitter API via the Windows command line. I've already generated the oAuth headers and can post a tweet without a photo using: curl -k -X POST "https://api.twitter.com/1.1/statuses/update.json" -d "status=Test" -H "Authorization: OAuth oauth_consumer_key=\"xxxxxxxxxxxxxxxxxxx\", oauth_nonce=\"xxxxxxxxxxxxxxxxxxxxxxx\", oauth_signature=\"xxxxxxxxxxxxxxxxxxx\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"xxxxxxxxxx\", oauth_token=\"xxxxxxxxxxxxxxxxx\",

OAuth 1.0 transform Consumer Secret into an oauth_signature

不问归期 提交于 2020-12-13 05:37:33
问题 I am trying to implement Twitter login with my MERN application. Following twitter tutorials, i understand that all request should be signed with an OAuth headers. If i use postman, i enter my credentials (Consumer Key, Consumer Secret) in the authorization tab and the call works. The things is that postman transform the Consumer secret into and oauth_signature before sending the call. Now i want to do this workflow in Nodejs. All tutorials online use complicated passport strategies and the

API 1.1 requesting twitter bearer token using r

谁说我不能喝 提交于 2020-08-11 17:59:57
问题 I have searched this forum and tried several things that seemed relevant, but with no success. If anyone can spot what I'm missing I would be very grateful. I am trying to get a bearer token using application only authorization as explained at https://dev.twitter.com/docs/auth/application-only-auth so that I can GET follower s/ids. I have constructed a request in r using rstudio with my consumer key & secret in Base64 encoded form. library(httr) POST(url="https://api.twitter.com/oauth2/token"

Load twitter posts from different users

早过忘川 提交于 2020-07-22 21:52:10
问题 Hi need to load twitter posts from different users . I know how to load post from single user. Perform request with search query FROM:<username> . Do you know the way how to load posts from different users? I tried something like this FROM:<username1>&&<username2> - but it doesn't work. Any ideas? 回答1: You can make use of TwitterKit framework which is available in cocoapods GitHub - https://github.com/twitter/twitter-kit-ios/wiki/Access-Twitter's-REST-API Cocoapods - https://cocoapods.org