update records
It is possible to update a record with the function http() ?
Robert
6 replies
-
Assuming you are using the Ninox Cloud version .. See the following:
-
Hello Mconneen,
Yes i use version cloud. and i write this code and the response is : Unauthorized
My code :
let myKey := "XXXXXXXXXXXX";
let myTeam := "YYYYYYYYYYY";
let my := this;
let myURL := "https://api.ninoxdb.de/v1/teams";
let myAction := "GET";
DebugDashboard := "";
let response := do as server
http(myAction, myURL, {
Authorization: "Bear " + myKey
}, {
'Content-Type': "application/json"
})
end;
if response.error then
alert(response.error)
else
DebugDashboard := text(response.result);
end -
This code is only to find the keys of my teams.
-
Authorization: "Bear " should be Authorization: "Bearer "
-
See EN Webinar 36_Document_Database_Structure as an example.
-
Extra thanks Mconneen. i have missed on authorization.
Content aside
- 5 yrs agoLast active
- 6Replies
- 1589Views