Update button re-enable timeout to 3 seconds, update thing history

This commit is contained in:
Mo Tarbin 2024-07-01 22:12:19 -04:00
parent 6bc28be9e3
commit 5e54da8271
9 changed files with 1004 additions and 92 deletions

View file

@ -197,6 +197,13 @@ const DeleteThing = id => {
})
}
const GetThingHistory = (id, offset) => {
return Fetch(`${API_URL}/things/${id}/history?offset=${offset}`, {
method: 'GET',
headers: HEADERS(),
})
}
const CreateLongLiveToken = name => {
return Fetch(`${API_URL}/users/tokens`, {
method: 'POST',
@ -236,6 +243,7 @@ export {
GetCircleMemberRequests,
GetLongLiveTokens,
GetSubscriptionSession,
GetThingHistory,
GetThings,
GetUserCircle,
GetUserProfile,