ejectamenta
ejectamenta

Reputation: 1097

is it possible to upload audio to twitter using update_with_media in node.js?

I have found some examples using images (ie https://gist.github.com/adaline/7363853), but does anyone know if it is also possible to upload media such as audio mp3 files and include the in_reply_to_status_id?

Thanks

Dave

Upvotes: 1

Views: 160

Answers (1)

Terence Eden
Terence Eden

Reputation: 14334

If you read the documentation you'll see that they only allow photos / images to be uploaded.

Currently, the only type exposed in our entities is photo.

If you want to embed audio with your tweet, you will need to set up Twitter Cards. The audio will need to be hosted on your site (or a site like SoundCloud).

Look specifically at the Player Card.

Upvotes: 1

Related Questions