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/listRecent

GET Get the list of folders recently used by the user.

Sample Code:

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

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

Results Returned:

{
    "status": "success",
    "data": [
        {
            "id": "KBCB8BK86WIW1",
            "name": "Industrial",
            "description": "",
            "children": [],
            "modificationTime": 1591972345736,
            "tags": [],
            "password": "",
            "passwordTips": "",
            "images": [],
            "isExpand": true,
            "newFolderName": "Industrial",
            "imagesMappings": {},
            "imageCount": 11,
            "descendantImageCount": 11,
            "pinyin": "GONGYEFENG",
            "extendTags": []
        },
        {
            "id": "KBBPIOY46SRWP",
            "name": "Scandinavian",
            "description": "",
            "children": [],
            "modificationTime": 1591773342438,
            "tags": [],
            "password": "",
            "passwordTips": "",
            "images": [],
            "isExpand": true,
            "newFolderName": "Scandinavian",
            "imagesMappings": {},
            "imageCount": 72,
            "descendantImageCount": 72,
            "pinyin": "BEIOUFENGGE",
            "extendTags": []
        }
    ]
}

Previous/api/folder/listNext/api/item/addFromURL

Last updated 4 years ago

Was this helpful?