C/2/statuses/upload pic/biz-en

跳转到: 导航, 搜索

statuses/upload pic/biz

Upload pictures, return the pic_id and picture urls.

URL

https://c.api.weibo.com/2/statuses/upload pic/biz.json

Supported Formats

JSON

HTTP Request Method

GET

Requires Login

true
See the Login and Authorization Mechanism Statement for login and authorization details.

Requests Count Limitation


Request all APIs:

    • 50000/hour/IP;

Request Parameters

  Requires Type and Range Description
source false string This parameter is not needed when using OAuth.The value of this parameter is the AppKey.
access_token false string This parameter is required when using OAuth.You will get the access_token after oauth authorization.
pic true string The picture path to be uploaded.

Notes

  • The pic_id returned can only be used for publishing weibo post with multiple pictures.
  • The picture size should be within 5M.
  • If you have not logged in or the number of publishing pictures has beyond the upper limit, it would return the error 403.

Response

JSON Example

{
    "pic_id": "946308c5jw1dv288whtylj",
    "thumbnail_pic": "http://ww3.sinaimg.cn/thumbnail/946308c5jw1dv288whtylj.jpg",
    "bmiddle_pic": "http://ww3.sinaimg.cn/bmiddle/946308c5jw1dv288whtylj.jpg",
    "original_pic": "http://ww3.sinaimg.cn/large/946308c5jw1dv288whtylj.jpg"
}

See the Error Code Description for the error information details.

Field Description

none

Others

none

Language: [[{{{2/uri}}}|中文]]


文档更新时间: 2017-08-02