yupoo.albums.getPhotos

返回一个相册中所有照片列表.

认证

该方法不需要认证

参数

名称 是否必需 意思
api_key 必需 你的API key
api_sig 必需 签名, 请参考如何签名
album_id 必需 相册ID(形如:userid-albumid)
per_page 可选 每页的照片数目,默认是500,最大为500
page 可选 要返回的页码,默认为1

返回结果例子

<album id="2496568-1873377" page="1" perpage="7" pages="1" total="7">
    <photos>
        <photo id="2496568-78669276" owner="2496568" ownername="tokune" title="[10540312]STA50095" bucket="tokune" key="AEDSpoLs" host="0" dir="tokune" filename="AEDSpoLs"/>
        <photo id="2496568-78669282" owner="2496568" ownername="tokune" title="STA50096" bucket="tokune" key="AEDSwu1J" host="0" dir="tokune" filename="AEDSwu1J"/>
        <photo id="2496568-78669288" owner="2496568" ownername="tokune" title="STA50098" bucket="tokune" key="AEDSEgy3" host="0" dir="tokune" filename="AEDSEgy3"/>
        <photo id="2496568-78669290" owner="2496568" ownername="tokune" title="STA50109" bucket="tokune" key="AEDSMB81" host="0" dir="tokune" filename="AEDSMB81"/>
        <photo id="2496568-78669295" owner="2496568" ownername="tokune" title="STA50113" bucket="tokune" key="AEDTvdgZ" host="0" dir="tokune" filename="AEDTvdgZ"/>
        <photo id="2496568-78669299" owner="2496568" ownername="tokune" title="STA50127" bucket="tokune" key="AEDT1INc" host="0" dir="tokune" filename="AEDT1INc"/>
        <photo id="2496568-78830648" owner="2496568" ownername="tokune" title="C360_2010-11-30 18-48-54_org" bucket="tokune" key="AFFKlnAI" host="0" dir="tokune" filename="AFFKlnAI"/>
    </photos>
</album>

如何将结果中photo这个元素转化成url地址,请看这里

错误代号

代号 消息 解释
1 Album not found 相册未找到