Account/get privacy/en

跳转到: 导航, 搜索

目录

account/get_privacy

Get privacy settings.

URL

http://api.t.sina.com.cn/account/get_privacy.(json%7Cxml)

Supported Formats

XML/JSON

HTTP Request Method

GET

Requires Authentication

true
See the Authorization Mechanism Statement for authorization details

Requests Count Limitation

true
See the Interface Access Rights Statement for the Request Count Limitaiton details.

Request Parameters

  Requires Type and Range Description
source true string AppKey for the application to identify it. ( This parameter is not needed when using OAuth)

Notes

None

Example Request

XML
curl -u "username:password" "http://api.t.sina.com.cn/account/get_privacy.xml?source=appkey"
JSON
curl -u "username:password" "http://api.t.sina.com.cn/account/get_privacy.json?source=appkey"

Response

XML Example

<?xml version="1.0" encoding="UTF-8"?>
<result> 
 <comment>1</comment>
  <dm>0</dm>
   <real_name>0</real_name>
  <geo>1</geo>
  <badge>0</badge>
</result>

JSON Example

{"comment":"1","dm":"0","real_name":"0","geo":"1","badge":"0"}

Field Description

comment : Who can comment this account’s status. 0:all users. 1: followings.
dm : Who can send direct message to this account. 0:all users. 1: followings.
real_name: Whether allow other user find me by real name though the search engine. 0:allow. 1: not allow.
geo : Whether allow saving and displaying geo info in status. 0:allow. 1: not allow.
badge : Medal status. -1: private. 0: public. Default value is 0.

Others

None