Eagle API Document
Search…
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
Examples
Using Eagle API with Tampermonkey
Changelog
Powered By
GitBook
/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:
1
var
requestOptions
=
{
2
method
:
'GET'
,
3
redirect
:
'follow'
4
};
5
6
fetch
(
"http://localhost:41595/api/application/info"
,
requestOptions
)
7
.
then
(
response
=>
response
.
json
())
8
.
then
(
result
=>
console
.
log
(
result
))
9
.
catch
(
error
=>
console
.
log
(
'error'
,
error
));
Copied!
Results Returned:
1
{
2
"status"
:
"success"
,
3
"data"
:
{
4
"version"
:
"1.11.0"
,
5
"prereleaseVersion"
:
null
,
6
"buildVersion"
:
"20200612"
,
7
"execPath"
:
"/Users/augus/Projects/Eagle App/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Helper (Renderer).app/Contents/MacOS/Electron Helper (Renderer)"
,
8
"platform"
:
"darwin"
9
}
10
}
Copied!
Previous
Overview
Next - Folder
/api/folder/create
Last modified
1yr ago
Copy link