Eagle API Document
  • Overview
  • Application
    • /api/application/info
  • Folder
    • /api/folder/create
    • /api/folder/rename
    • /api/folder/update
    • /api/folder/list
    • /api/folder/listRecent
  • Item
    • /api/item/addFromURL
    • /api/item/addFromURLs
    • /api/item/addFromPath
    • /api/item/addFromPaths
    • /api/item/addBookmark
    • /api/item/info
    • /api/item/thumbnail
    • /api/item/list
    • /api/item/moveToTrash
    • /api/item/refreshPalette
    • /api/item/refreshThumbnail
    • /api/item/update
  • Library
    • /api/library/info
    • /api/library/history
    • /api/library/switch
    • /api/library/icon
  • Examples
    • Using Eagle API with Tampermonkey
  • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. Folder

/api/folder/list

GET Get the list of folders of the current library.

Sample Code:

var requestOptions = {
  method: 'GET',
  redirect: 'follow'
};

fetch("http://localhost:41595/api/folder/list", requestOptions)
  .then(response => response.json())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Results Returned:

{
    "status": "success",
    "data": [
        {
            "id": "JMHB2Y3Y3AA75",
            "name": "UI Design",
            "description": "",
            "children": [],
            "modificationTime": 1537854867502,
            "tags": [],
            "imageCount": 33,
            "descendantImageCount": 33,
            "pinyin": "UI Design",
            "extendTags": []
        },
        {
            "id": "JMHB2Y3Y3AA76",
            "name": "Post Design",
            "description": "",
            "children": [],
            "modificationTime": 1487586362384,
            "tags": [],
            "imageCount": 2800,
            "descendantImageCount": 2800,
            "pinyin": "Post Design",
            "extendTags": []
        },
        {
            "id": "JMHB2Y3Y3AA77",
            "name": "Movie Post Design",
            "description": "",
            "children": [],
            "modificationTime": 1487586529221,
            "tags": [],
            "imageCount": 449,
            "descendantImageCount": 449,
            "pinyin": "Movie Post Design",
            "extendTags": []
        },
        {
            "id": "JMHB2Y3Y3AA78",
            "name": "Business Card Design",
            "description": "",
            "children": [],
            "modificationTime": 1494390324202,
            "tags": [
                "Business Card"
            ],
            "imageCount": 1236,
            "descendantImageCount": 1236,
            "pinyin": "Business Card Design",
            "extendTags": [
                "Business Card"
            ]
        }
    ]
}
Previous/api/folder/updateNext/api/folder/listRecent

Last updated 4 years ago

Was this helpful?