注意事项- 为了方便,下面的实例中的http://album.imnerd.org 为我的imagevue相册地址,请根据自己的相册做相应的修改
- 有些人写了.htaccess防盗链的设置,如果要在远程获取图片请更改.htaccess添加网站的支持
- 为了防止别人使用你的API只是流量等问题出现,请更改API文件名称以便别人无法发现。(不是必须操作可看主机而定)
API方法说明get.gallery.name{"1":"fzyzbnxq"}
get.gallery.info
{"mTime":"1320817048", "name":"fzyzbnxq", "date":"1320817048", "fileCount":"80", "totalFileCount":"80", "maxThumbWidth":"120", "maxThumbHeight":"90", "path":"content\/fzyzbnxq\/", "title":"\u629a\u5dde\u4e00\u4e2d\u767e\u5e74\u6821\u5e86", "previewimage":"DSCF8609.JPG", "description":"\u597d\u5427\uff0c\u5176\u5b9e\u662f110\u5e74\u7684\u3002", "pageContent":"", "sort":"auto", "hidden":"", "page":"gallery", "fileMod":"", "viewAs":"grid", "order":"1", "parameters":"", "password":""} get.photos {"file":"DSCF8611.JPG", "title":"", "descirption":"", "order":"16", "url":"http:\/\/album.imnerd.org\/content\/fzyzbnxq\/DSCF8611.JPG", "thumbnail":"http:\/\/album.imnerd.org\/content\/fzyzbnxq\/tn_DSCF8611.jpg"}} get.photo {"file":"DSCF8609.JPG", "title":"", "descirption":"", "order":"15", "url":"http:\/\/album.imnerd.org\/content\/fzyzbnxq\/DSCF8609.JPG", "thumbnail":"http:\/\/album.imnerd.org\/content\/fzyzbnxq\/tn_DSCF8609.jpg"} get.gallery.pageget.gallery.filecount[旧]get.gallery.children(get.gallery.parent[新])
|