Unable to fetch media details in a scheduled tweet


#1

Hey Team,

When fetching scheduled tweet using the endpoint

https://ads-api.twitter.com/2/accounts/18ce53vjzfs/scheduled_tweets/?oauth_consumer_key=xxxxCMLv9Xd9nkT20Q&oauth_token=3311953868-xxxx&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1507180805&oauth_nonce=pwgUP2&oauth_version=1.0&oauth_signature=BcxEql%2B6aycqBfo8hgKPWcPJWqg%3D1

Response

{  
  "completed_at":"2017-10-04T07:36:00Z",
  "id_str":"915478330127687680",
  "text":"Scheduled to play in an ad bro",
  "user_id":"296651969",
  "scheduled_status":"SUCCESS",
  "id":915478330127687680,
  "media_ids":[  
    "915478197772345344"
  ],
  "nullcast":true,
  "created_at":"2017-10-04T07:26:57Z",
  "scheduled_at":"2017-10-04T07:36:17Z",
  "card_uri":null,
  "updated_at":"2017-10-04T07:36:00Z",
  "tweet_id":"915480608943378432",
  "media_keys":[  
    "3_915478197772345344"
  ]
}

In response we are getting media ids but there is no call to fetch media details for an image using its media Id.

Due to the above we are unable to render any media details at our end

Is there an API to fetch media details using its id. This is specific for image media ids.

Thanks


#2

Thanks for the question, @abhishek_pyro! You’re right that there currently isn’t a way to retrieve media details. This is a good use case and we’re thinking through how to improve our offerings. We’ll update you when you have more information.