flickr 用户信息详析

news/2024/7/4 8:44:10

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


http://www.niftyadmin.cn/n/529817.html

相关文章

BZOJ1390 CEOI2008 Fences 凸包、Floyd最小环/DP

传送门 为了方便描述把固定点叫做白色点&#xff0c;Tree叫做黑色点 一种基于特殊性质的做法&#xff1a; 如果不算入选白色的权值&#xff0c;那么一定会选中所有白色点构成的凸包上的点&#xff0c;因为能够尽可能围更多的黑色点。然后我们在这个基础上删凸包上无用的白色点&…

respond.php,respond.php

//WEBSC商城资源define(IN_ECS, true);require dirname(__FILE__) . /includes/init.php;require ROOT_PATH . includes/lib_payment.php;require ROOT_PATH . includes/lib_order.php;$pay_code (!empty($_REQUEST[code]) ? trim($_REQUEST[code]) : );if (empty($pay_code)…

javascript检测flash版本

今天要做一个根据用户安装的是什么flash版本&#xff0c;为其播放哪断视频&#xff0c;所以搜了先用javaScrip检测出来版本后&#xff0c;再将其参数发给flash&#xff0c; <SCRIPT typetext/javascript><!--var i_flash;var v_flash;// Netscape if (navigator.plugi…

php 静态方法调用成员,PHP静态方法在成员变量中使用命名空间调用

是不是可以在PHP中做这样的事情&#xff1f;我想在一个成员变量中有一个名称空间,并且总是能够调用该类的每个静态方法,就像我在下面所做的那样.当然我的代码不起作用,但我只是想知道这是否可行,并且我接近解决方案,或者如果这完全不可能并且必须始终使用语法&#xff1a;\Stri…

注入(Injection)

注入(Injection)是: Java EE提供了注入机制&#xff0c;使您的对象能够获取对资源和其他依赖项的引用&#xff0c;而无需直接实例化它们。通过使用将字段标记为注入点的注释之一来装饰字段或方法&#xff0c;可以在类中声明所需的资源和其他依赖项。然后容器在运行时提供所需的…

javaScript 测试下载速度

<script>function init(){var timer1new Date().getTime();var imgnew Image();img.src"http://www.netfront.net/speedtest/images/photo" parseInt(Math.round(Math.random()*5)1) ".bmp?" Math.random();img.οnlοadfunction(){sizeimg.file…

CMDB学习之六 --客户端请求测试,服务端api优化

客户端使用agent 请求测试&#xff0c;agent使用的POST 请求&#xff0c;使用requests模块 本地采集&#xff0c;汇报服务端 #!/usr/bin/env python # -*- coding:utf-8 -*- from .base import BaseHandler from ..plugins import get_server_info import requests import json…

FLEX杂谈——flex就业现状与学习标准分析

写下这个标题大家一定以为我是只FLEX老鸟,不然不敢这么高声说话,而且是在JAVAEYE里.我知道JE里高手很多.有很多人都对FLEX有秀深的见底,写此文是为了回答一些朋友对我的提问. 有很多想转行的开发者都问我这样几个问题:现在招FLEX的公司多吗?搞FLEX开发工资高吗?怎么样才算是F…