验证账号

出自开开API

跳转到: 导航, 搜索

目录

说明

用户验证 成功返回user数据结果

路径

http://open.k.ai/public/account/verify_credentials.[json,xml]?key=appkey

是否需要身份认证

YES

请求数限制

YES

HTTP请求方式

GET

成功返回

XML

<?xml version="1.0" encoding="UTF-8" ?> 
<login>
	<user>
		<id>172470</id>
		<name>用户名称</name> 
		<screen_name>用户昵称</screen_name> <!-- 用户昵称 -->
		<gender>male</gender> <!-- 性别取值 male|female|secret -->
		<age>25</age>
		<location>苏州 苏州市工业园区星洲街</location> 
		<description>自我介绍</description>
		<profile_image_url>http://k.ai/files/avatar/23/77/69/172470.10339.jpg</profile_image_url>
		<rp>920</rp> <!-- 用户 Karma 值 -->
		<birthday>1985-01-01</birthday>
		<url>http://k.ai/username</url>
		<protected>false</protected>
		<friend>true</friend>
		<following>true</following>
		<block>false</block>
		<friends_count>8</friends_count>
		<favourites_count>0</favourites_count>
		<statuses_count>147</statuses_count>
		<checkins_count>32</checkins_count>
		<cronws_count>0</cronws_count> <!-- 皇冠数 -->
		<followers_count>15</followers_count>
		<followings_count>12</followings_count>
		<treasures_count>0</treasures_count>
		<ping>false</ping>
		<last_checkin>
			<create_at>20100723T0508Z</create_at>
			<poi_simple>
				<id>122581</id>
				<name>和乔丽晶</name>
				<lon>120.58558339091</lon>
				<lat>31.297777203157</lat>
			</poi_simple>
		</last_checkin>
	</user>
</login>
 

验证未通过返回

Http Code 401

个人工具