I am trying to use the twitter rest api for my deal website http://www.getbeststuff.com. I did a search for the following keyword using the API:
promo code filter:verified filter:links
Now check out these two different statuses that it returns.
For the first one, it returns the URL attached with the tweet (http://giveback.indyeleven.com) for
which is fine.
But for the second one(which has an image attached), for the same
tweets["statuses"]["entities"]["urls"]["expanded_url"] it returns the URL to the tweet with the id 787974711523282945
Why is that? How can I get the attached url: bit.ly/2e0GHaM from the second tweet?
There are no keys in that whole json which has that link. Why is that? How can i get that link using the api?