2/statuses/user timeline/ids/en

跳转到: 导航, 搜索
 
(未显示1个用户的2个中间版本)
第1行: 第1行:
 
{{api_desc_v2_en|
 
{{api_desc_v2_en|
 
uri=statuses/user_timeline/ids|
 
uri=statuses/user_timeline/ids|
desc=Return the latest weibos'ID of one user.|
+
desc=Return the latest weibos ID of one user.|
 
httpMethod=GET|
 
httpMethod=GET|
 
needAuth=true|
 
needAuth=true|
 
level={{Api_L1_en}}|
 
level={{Api_L1_en}}|
 
rateLimit=true|
 
rateLimit=true|
params={{api_args|uid|false|int64|Return the weibos'ID of specified ID of a user.}}
+
params={{api_args|uid|false|int64|Return the weibos ID of specified ID of a user.}}
 
{{api_args|screen_name|false|string|The nickname of the user that ID is specified.}}
 
{{api_args|screen_name|false|string|The nickname of the user that ID is specified.}}
{{api_args|since_id|false|int64|Returns the weibos'ID with the ID greater than (that is, more recent than) the specified ID,the default value is 0.}}
+
{{api_args|since_id|false|int64|Return the weibos ID with the ID greater than (that is, more recent than) the specified ID,the default value is 0.}}
{{api_args|max_id|false|int64|Returns the weibos'ID with the ID smaller than the specified ID or equal with the specified ID,the default value is 0.}}
+
{{api_args|max_id|false|int64|Return the weibos ID with the ID smaller than the specified ID or equal with the specified ID,the default value is 0.}}
 
{{api_args|count|false|int|The returned count for every page.The default value is 50.}}
 
{{api_args|count|false|int|The returned count for every page.The default value is 50.}}
 
{{api_args|page|false|int|The returned page.The default value is 1.}}
 
{{api_args|page|false|int|The returned page.The default value is 1.}}
 
{{api_args|base_app|false|int|Whether get the data based on current application only. 1 is only current application; 0 is no limitation. The default value is 0.}}
 
{{api_args|base_app|false|int|Whether get the data based on current application only. 1 is only current application; 0 is no limitation. The default value is 0.}}
{{api_args|feature|false|int|Returns the weibos'ID by weibo type. 0 : all types; 1 : original; 2 : picture; 3 : video; 4 : music; The default value is 0.}}|
+
{{api_args|feature|false|int|Return the weibos ID by weibo type. 0 : all types; 1 : original; 2 : picture; 3 : video; 4 : music; The default value is 0.}}|
 
result=
 
result=
 
<pre>
 
<pre>
第31行: 第31行:
 
useAge=*You must provide a parameter either uid or screen_name.
 
useAge=*You must provide a parameter either uid or screen_name.
 
*If you don't provide both of the uid and the screen_name, or don't provide rightly, you will get the data of the authenticating user.
 
*If you don't provide both of the uid and the screen_name, or don't provide rightly, you will get the data of the authenticating user.
*You can get the user’s latest 200 weibos'ID at the most.|
+
|
 
otherInfo=None
 
otherInfo=None
 
}}
 
}}

2012年1月31日 (二) 13:00的最后版本

statuses/user_timeline/ids

Return the latest weibos ID of one user.

URL

https://api.weibo.com/2/statuses/user_timeline/ids.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

Level:Normal
Count Limitation:true
See the Interface Access Rights Statement for the request count limitation details.

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.
uid false int64 Return the weibos ID of specified ID of a user.
screen_name false string The nickname of the user that ID is specified.
since_id false int64 Return the weibos ID with the ID greater than (that is, more recent than) the specified ID,the default value is 0.
max_id false int64 Return the weibos ID with the ID smaller than the specified ID or equal with the specified ID,the default value is 0.
count false int The returned count for every page.The default value is 50.
page false int The returned page.The default value is 1.
base_app false int Whether get the data based on current application only. 1 is only current application; 0 is no limitation. The default value is 0.
feature false int Return the weibos ID by weibo type. 0 : all types; 1 : original; 2 : picture; 3 : video; 4 : music; The default value is 0.

Notes

  • You must provide a parameter either uid or screen_name.
  • If you don't provide both of the uid and the screen_name, or don't provide rightly, you will get the data of the authenticating user.

Response

JSON Example

{
    "statuses": [
        "3382905382185354",
        "3382905252160340",
        "3382905235630562",
        ...
    ],
    "previous_cursor": 0,
    "next_cursor": 0,
    "total_number": 16
}

See the Error Code Description for the error information details.

Field Description

None

Others

None



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


文档更新时间: 2012-01-31