Questions tagged [twitter-rest-api]

The REST APIs provide programmatic access to read and write Twitter data. Create a new Tweet, read user profile and follower data, and more. The REST API identifies Twitter applications and users using OAuth; responses are in JSON format.

95 questions
1
vote
1 answer

Why does the Twitter API search endpoint only show a max of 15 results when sorting by popular tweets?

When using the search endpoint, I am only getting a max of 15 results, no matter how popular of a search query I use. Setting count to 100 does not make a difference, however it does when sorting by most recent. Does anybody else experience this? Is…
Tony Paternite
  • 153
  • 1
  • 14
1
vote
0 answers

How to remove duplicate Images obtained from Twitter Rest Search API?

I am using twython to extract images shared on twitter for #apple. The images have a unique image ID assigned by twitter but the images are pictorially same. How can I detect duplicate images ? For Local Images, I got the solution: Calcuate Hash for…
userxxx
  • 796
  • 10
  • 18
1
vote
1 answer

Twitter api upload image always return error "media type unrecognized"

I do POST-request on https://upload.twitter.com/1.1/media/upload.json with postfield 'media_data' => base64_encode(file_get_contents($path)) twitter api always return error "media type unrecognized". what's wrong? I tried to change postfield to…
1
vote
3 answers

How to post direct message using Twitter rest API

I am trying to post direct message using Twitter rest API in C#, but not able to get the results. I succeeded in posting status update by changing the basestring, but not in this case. var oauth_token = "XXXX; //user var…
1
vote
0 answers

Historical data from Twitter using REST API

I am developing a PHP application using the Twitter API. I have already achieved the data extraction from REST API using some queries and then i have stored it in a MongoDB instance which can later be mined and accessed by my web application. I want…
souzanne
  • 63
  • 1
  • 5
1
vote
1 answer

Why twitter cursor is null?

I have some tweet id. I want to get retweeters of this tweet. Therefore, I use this api: https://dev.twitter.com/rest/reference/get/statuses/retweeters/ids. There is a example of code written with help python 3 and TwitterAPI: credentials =…
Denis
  • 3,595
  • 12
  • 52
  • 86
1
vote
1 answer

Twitter reverse auth credentials suddenly stopped working on iOS

I have been using reverse auth in my Twitter app for a year now. This morning my app reverse auth stopped working. After doing some inspecting, I found out that I am receiving an error message that states "Reverse auth credentials are invalid." This…
user3647894
  • 559
  • 1
  • 4
  • 28
1
vote
0 answers

Twitter Api: Autocomplete with friends

I'm trying to implement a "search for username" feature using the Twitter Api. Specifically, I need autocomplete. I've noticed that /users/search/ doesn't work well, while looking for friends it keeps suggesting people that has nothing to do with me…
pistacchio
  • 56,889
  • 107
  • 278
  • 420
1
vote
1 answer

Statuses/oembed of Twitter Rest API v1.1 returns {“errors”:[{“message”:“Sorry, that page does not exist”,“code”:34}]}

I'm trying to retrieve embedded tweets using statuses/oembed , the url sent to the api is https://api.twitter.com/1.1/statuses/oembed/507185938620219395.json but i noticed in the documentation the sent url should be…
1
vote
0 answers

Twitter REST API check for suspension

When a user's Twitter account is suspended, user can still sign in with his/her Twitter account. REST API doesn't give any information about the suspension. If user makes a GET friends/ids, no error code comes. Only empty friends list. Is there a…
trante
  • 33,518
  • 47
  • 192
  • 272
0
votes
1 answer

Twitter GET user_timeline Not Always Returning Count=200

We are running into an issue with a small percentage of our users. We iterate through a users tweets, making a call to user_timeline, count=200 and max_id of the previous iterations last post id. Most of the time it works great up to 3200, but there…
s1rc
  • 1
  • 3
0
votes
2 answers

oAuth 1.0, Advanced Rest Client, Twitter API, Not Working

I've done all the developer.twitter.com setup (created an app and a dev environment). In ARC, I have filled in the Authorization section, choosing oAuth 1.0, filled in the consumer key, consumer secret, token, token secret, and token auth URL. ARC…
0
votes
0 answers

Twitter REST API using python

import oauth2 as auth consumer = auth.Consumer(key=consumer_key, secret=consumer_secret) access_token = auth.Token(key=access_token, secret=access_token_secret) client = oauth.Client(consumer, access_token) endpoint =…
ranaz
  • 97
  • 1
  • 10
0
votes
2 answers

Retrieve screen name from twitter account?

Is it possible to get a twitter account's username from an instance of the Twitter REST client? Specifically, I would like to get the name for the twitter account associated with the client's access tokens and secrets. I searched through the…
ByteByByte
  • 303
  • 1
  • 2
  • 11
0
votes
0 answers

How do I publish a tweet with media from Angular 2?

I am working on an IONIC project with angular. I want to publish tweet to a specific twitter account from the IONIC app. How can I do that? I tried to use https://github.com/Aoinu/ng2-twitter this NPM package, but no luck. For browser, it is giving …