2/friendships/show/en
(Created page with '{{api_desc_v2_en| uri=friendships/show| desc=Return the relationship of two users. | httpMethod=GET| needAuth=true| level={{Api_L1_en}}| rateLimit=true| params={{api_args|source_…') |
|||
第8行: | 第8行: | ||
params={{api_args|source_id|false|int64|User ID of the subject user.}} | params={{api_args|source_id|false|int64|User ID of the subject user.}} | ||
{{api_args|source_screen_name|false|string|User nickname of the subject user.}} | {{api_args|source_screen_name|false|string|User nickname of the subject user.}} | ||
− | {{api_args|target_id|false|int64 | + | {{api_args|target_id|false|int64|User ID of the target user.}} |
{{api_args|target_screen_name|false|string|User nickname of the target user.}}| | {{api_args|target_screen_name|false|string|User nickname of the target user.}}| | ||
result= | result= |
2012年1月12日 (四) 10:59的最后版本
friendships/show
Return the relationship of two users.
URL
https://api.weibo.com/2/friendships/show.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. |
source_id | false | int64 | User ID of the subject user. |
source_screen_name | false | string | User nickname of the subject user. |
target_id | false | int64 | User ID of the target user. |
target_screen_name | false | string | User nickname of the target user. |
Notes
- You must provide a parameter either source_id or source_screen_name.
- You must provide a parameter either target_id or target_screen_name.
Response
JSON Example
{ "target": { "id": 1418348195, "screen_name": "zaku", "followed_by": false, "following": false, "notifications_enabled": false }, "source": { "id": 1734528095, "screen_name": "檀木幻想", "followed_by": false, "following": false, "notifications_enabled": false } }
See the Error Code Description for the error information details.
Field Description
None
Others
None
文档更新时间: 2012-01-12