flickr 用户信息详析

flickr.people.getInfo

Get information about a user.

認證

此方法不需要認證。

引數

api_key (必需的)
Your API application key. See here for more details.
user_id (必需的)
The NSID of the user to fetch information about.

範例回覆

<person nsid="12037949754@N01" isadmin="0" ispro="0" iconserver="122" iconfarm="1">   <username>bees</username>   <realname>Cal Henderson</realname>          <mbox_sha1sum>eea6cd28e3d0003ab51b0058a684d94980b727ac</mbox_sha1sum>   <location>Vancouver, Canada</location>   <photosurl>http://www.flickr.com/photos/bees/</photosurl>    <profileurl>http://www.flickr.com/people/bees/</profileurl>    <photos>    <firstdate>1071510391</firstdate>    <firstdatetaken>1900-09-02 09:11:24</firstdatetaken>    <count>449</count>   </photos>  </person>

The firstdate element contains the unix timestamp of the first photo uploaded by the user. The firstdatetaken element contains the mysql datetime of the first photo taken by the user.

The iconserver element is used to build the url to the users' buddyicon - for more information please read the buddyicon guide.

If the API call is authenticated contact information will also be returned as attributes on the person element. contact, friend, and family are boolean flags describing the relationship between the authenticated user, and the person currently being inspected. revcontact, revfriend, and revfamily is the reciprocal relationship.

錯誤代碼

1: User not found
The user id passed did not match a Flickr user.
100: Invalid API Key
The API key passed was not valid or has expired.
105: Service currently unavailable
The requested service is temporarily unavailable.
111: Format "xxx" not found
The requested response format was not found.
112: Method "xxx" not found
The requested method was not found.
114: Invalid SOAP envelope
The SOAP envelope send in the request could not be parsed.
115: Invalid XML-RPC Method Call
The XML-RPC request document could not be parsed.

API 發掘

API 發掘: flickr.people.getInfo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

游鱼_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值