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. Application

/api/application/info

GET Get detailed information on the Eagle App currently running. In most cases, this could be used to determine whether certain functions are available on the user's device.

Sample Code:

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

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

Results Returned:

{
    "status": "success",
    "data": {
        "version": "1.11.0",
        "prereleaseVersion": null,
        "buildVersion": "20200612",
        "execPath": "/Users/augus/Projects/Eagle App/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Helper (Renderer).app/Contents/MacOS/Electron Helper (Renderer)",
        "platform": "darwin"
    }
}
PreviousOverviewNext/api/folder/create

Last updated 4 years ago

Was this helpful?