2/friendships/show/en

Jump to: navigation, search

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



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


文档更新时间: 12 January 2012