Export to GitHub

imagevue-api - API.wiki


注意事项

  • 为了方便,下面的实例中的http://album.imnerd.org 为我的imagevue相册地址,请根据自己的相册做相应的修改
  • 有些人写了.htaccess防盗链的设置,如果要在远程获取图片请更改.htaccess添加网站的支持
  • 为了防止别人使用你的API只是流量等问题出现,请更改API文件名称以便别人无法发现。(不是必须操作可看主机而定)

API方法说明

get.gallery.name

get.gallery.info

  • 描述: 获取相册具体信息
  • 调用地址: api.php?method=get.gallery.info
  • 参数:
    • name (必需) - 相册文件名
    • callback (可选) - 当使用json格式时,生成的json对象将作为参数传给指定的
  • 实例:http://album.imnerd.org/api.php?method=get.gallery.info&name=fzyzbnxq
  • 返回结果:
    {"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.page

get.gallery.filecount

[旧]get.gallery.children(get.gallery.parent[新])