statuses.update_with_media
POST
/statuses/update_with_media.json
authenticating user's status and attaches media for upload. Unlike POST statuses/update
(https://dev.twitter.com/docs/api/1.1/post/statuses/update), this method expects raw multipart data.
Your POST request's Content-Type should be set to multipart/form-data with the media[] parameter.
The Tweet text will be rewritten to include the media URL(s), which will reduce the number of
characters allowed in the Tweet text. If the URL(s) cannot be appended without text truncation, the
tweet will be rejected and this method will return an HTTP 403 error. Important: Make sure that
you're using upload.twitter.com as your host while posting statuses with media. It is strongly
recommended to use SSL with this method.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.twitter.com/1.1/statuses/update_with_media.json'
响应示例响应示例
{}
请求参数
Header 参数
Content-Type
string
必需
默认值:
multipart/form-data
返回响应
修改于 2024-09-24 06:06:38