当前位置: 首页 > 工具软件 > Piwigo > 使用案例 >

piwigo:接口:获取相册信息和获取相册图片列表信息

茅和玉
2023-12-01

 所有接口列表

{
  "result": {
    "methods": [
      "pwg.caddie.add",
      "pwg.categories.add",
      "pwg.categories.delete",
      "pwg.categories.deleteRepresentative",
      "pwg.categories.getAdminList",
      "pwg.categories.getImages",
      "pwg.categories.getList",
      "pwg.categories.move",
      "pwg.categories.refreshRepresentative",
      "pwg.categories.setInfo",
      "pwg.categories.setRank",
      "pwg.categories.setRepresentative",
      "pwg.extensions.checkUpdates",
      "pwg.extensions.ignoreUpdate",
      "pwg.extensions.update",
      "pwg.getInfos",
      "pwg.getMissingDerivatives",
      "pwg.getVersion",
      "pwg.groups.add",
      "pwg.groups.addUser",
      "pwg.groups.delete",
      "pwg.groups.deleteUser",
      "pwg.groups.getList",
      "pwg.groups.setInfo",
      "pwg.images.add",
      "pwg.images.addChunk",
      "pwg.images.addComment",
      "pwg.images.addFile",
      "pwg.images.addSimple",
      "pwg.images.checkFiles",
      "pwg.images.checkUpload",
      "pwg.images.delete",
      "pwg.images.deleteOrphans",
      "pwg.images.exist",
      "pwg.images.getInfo",
      "pwg.images.rate",
      "pwg.images.search",
      "pwg.images.setInfo",
      "pwg.images.setMd5sum",
      "pwg.images.setPrivacyLevel",
      "pwg.images.setRank",
      "pwg.images.syncMetadata",
      "pwg.images.upload",
      "pwg.permissions.add",
      "pwg.permissions.getList",
      "pwg.permissions.remove",
      "pwg.plugins.getList",
      "pwg.plugins.performAction",
      "pwg.rates.delete",
      "pwg.session.getStatus",
      "pwg.session.login",
      "pwg.session.logout",
      "pwg.tags.add",
      "pwg.tags.getAdminList",
      "pwg.tags.getImages",
      "pwg.tags.getList",
      "pwg.themes.performAction",
      "pwg.users.add",
      "pwg.users.delete",
      "pwg.users.favorites.add",
      "pwg.users.favorites.getList",
      "pwg.users.favorites.remove",
      "pwg.users.getAuthKey",
      "pwg.users.getList",
      "pwg.users.setInfo",
      "reflection.getMethodDetails",
      "reflection.getMethodList"
    ]
  },
  "stat": "ok"
}
http://localhost/piwigo/ws.php?format=json&method=pwg.categories.getList
{
  "result": {
    "categories": [
      {
        "comment": "",
        "date_last": "2020-10-09 21:33:40",
        "global_rank": "1",
        "id": 2,
        "id_uppercat": null,
        "max_date_last": "2020-10-09 21:33:40",
        "name": "调皮的当当",
        "nb_categories": 0,
        "nb_images": 15,
        "permalink": null,
        "representative_picture_id": "6",
        "status": "public",
        "tn_url": "http://localhost/piwigo/_data/i/upload/2020/09/17/20200917065204-1628d430-th.jpg",
        "total_nb_images": 15,
        "uppercats": "2",
        "url": "http://localhost/piwigo/index.php?/category/2"
      },
      {
        "comment": "",
        "date_last": "2020-08-11 09:21:24",
        "global_rank": "2",
        "id": 1,
        "id_uppercat": null,
        "max_date_last": "2020-08-11 09:21:24",
        "name": "武功山",
        "nb_categories": 0,
        "nb_images": 2,
        "permalink": null,
        "representative_picture_id": "1",
        "status": "public",
        "tn_url": "http://localhost/piwigo/_data/i/upload/2020/08/11/20200811092121-ce05eadb-th.jpg",
        "total_nb_images": 2,
        "uppercats": "1",
        "url": "http://localhost/piwigo/index.php?/category/1"
      }
    ]
  },
  "stat": "ok"
}

 

http://localhost/piwigo/ws.php?format=json&method=pwg.categories.getImages&cat_id=1

 

{
  "result": {
    "images": [
      {
        "categories": [
          {
            "id": 1,
            "page_url": "http://localhost/piwigo/picture.php?/2/category/1",
            "url": "http://localhost/piwigo/index.php?/category/1"
          }
        ],
        "comment": null,
        "date_available": "2020-08-11 09:21:24",
        "date_creation": "2020-07-11 14:14:56",
        "derivatives": {
          "2small": {
            "height": 240,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092124-dfa391ab-2s.jpg",
            "width": 180
          },
          "large": {
            "height": 756,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092124-dfa391ab-la.jpg",
            "width": 567
          },
          "medium": {
            "height": 594,
            "url": "http://localhost/piwigo/_data/i/upload/2020/08/11/20200811092124-dfa391ab-me.jpg",
            "width": 445
          },
          "small": {
            "height": 432,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092124-dfa391ab-sm.jpg",
            "width": 324
          },
          "square": {
            "height": 120,
            "url": "http://localhost/piwigo/_data/i/upload/2020/08/11/20200811092124-dfa391ab-sq.jpg",
            "width": 120
          },
          "thumb": {
            "height": 144,
            "url": "http://localhost/piwigo/_data/i/upload/2020/08/11/20200811092124-dfa391ab-th.jpg",
            "width": 108
          },
          "xlarge": {
            "height": 918,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092124-dfa391ab-xl.jpg",
            "width": 688
          },
          "xsmall": {
            "height": 324,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092124-dfa391ab-xs.jpg",
            "width": 243
          },
          "xxlarge": {
            "height": 1242,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092124-dfa391ab-xx.jpg",
            "width": 931
          }
        },
        "element_url": "http://localhost/piwigo/upload/2020/08/11/20200811092124-dfa391ab.jpg",
        "file": "IMG_20200711_141455.jpg",
        "height": 5120,
        "hit": 10,
        "id": 2,
        "name": "IMG 20200711 141455",
        "page_url": "http://localhost/piwigo/picture.php?/2",
        "width": 3840
      },
      {
        "categories": [
          {
            "id": 1,
            "page_url": "http://localhost/piwigo/picture.php?/1/category/1",
            "url": "http://localhost/piwigo/index.php?/category/1"
          }
        ],
        "comment": null,
        "date_available": "2020-08-11 09:21:21",
        "date_creation": "2020-07-11 14:14:16",
        "derivatives": {
          "2small": {
            "height": 240,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092121-ce05eadb-2s.jpg",
            "width": 180
          },
          "large": {
            "height": 756,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092121-ce05eadb-la.jpg",
            "width": 567
          },
          "medium": {
            "height": 594,
            "url": "http://localhost/piwigo/_data/i/upload/2020/08/11/20200811092121-ce05eadb-me.jpg",
            "width": 445
          },
          "small": {
            "height": 432,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092121-ce05eadb-sm.jpg",
            "width": 324
          },
          "square": {
            "height": 120,
            "url": "http://localhost/piwigo/_data/i/upload/2020/08/11/20200811092121-ce05eadb-sq.jpg",
            "width": 120
          },
          "thumb": {
            "height": 144,
            "url": "http://localhost/piwigo/_data/i/upload/2020/08/11/20200811092121-ce05eadb-th.jpg",
            "width": 108
          },
          "xlarge": {
            "height": 918,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092121-ce05eadb-xl.jpg",
            "width": 688
          },
          "xsmall": {
            "height": 324,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092121-ce05eadb-xs.jpg",
            "width": 243
          },
          "xxlarge": {
            "height": 1242,
            "url": "http://localhost/piwigo/i.php?/upload/2020/08/11/20200811092121-ce05eadb-xx.jpg",
            "width": 931
          }
        },
        "element_url": "http://localhost/piwigo/upload/2020/08/11/20200811092121-ce05eadb.jpg",
        "file": "IMG_20200711_141414.jpg",
        "height": 5120,
        "hit": 6,
        "id": 1,
        "name": "IMG 20200711 141414",
        "page_url": "http://localhost/piwigo/picture.php?/1",
        "width": 3840
      }
    ],
    "paging": {
      "count": 2,
      "page": 0,
      "per_page": 100,
      "total_count": "2"
    }
  },
  "stat": "ok"
}

 

 类似资料: