Twity icon indicating copy to clipboard operation
Twity copied to clipboard

Doesn't work "POST media/metadata/create"

Open toofusan opened this issue 6 years ago • 0 comments

Twity doesn't work with endpoint "POST media/metadata/create"

Because

  • Content-Type must be application/json; charset=UTF-8 or text/plain; charset=UTF-8
  • a request body for this endpoint must be nested Example
{
  "media_id":"692797692624265216",
  // image alt text metadata
  "alt_text": {
    "text":"dancing cat" // Must be <= 420 chars
  }
}

https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-metadata-create

toofusan avatar Dec 25 '17 01:12 toofusan