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/library/history
GET
Get the list of libraries recently opened by the Application.
Sample Code:
1
var
requestOptions
=
{
2
method
:
'GET'
,
3
redirect
:
'follow'
4
};
5
6
fetch
(
"http://localhost:41595/api/library/history"
,
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
"/Users/augus/Google Drive/Design fields.library"
,
5
"/Users/augus/Google Drive/Office Style.library"
,
6
"/Users/augus/Google Drive/Design Assets.library"
7
]
8
}
Copied!
Library - Previous
/api/library/info
Next - Library
/api/library/switch
Last modified
1yr ago
Copy link