Syntax for consecutive requests API
Hello, I try to make 2 consecutive requests on a API after creating a record, i try this but dont work
let response := do as server
http("GET", "https://office.bexio.com/oauth/authorize?client_id=XXXXXX.apps.bexio.com&redirect_uri=https://office.bexio.com/oauth/authorize/end&scope=general contact_show kb_offer_edit&state=xyz", {})
end;
if response.error then
alert(text(response.error))
else
alert(text(response.result));
alert("This is the alert message")
end
let response := do as server
http("GET", " https://office.bexio.com/oauth/access_token&client_ID=xxxxx&state=xyz", {})
end;
if response.error then
alert(text(response.error))
else
alert(text(response.result));
alert("This is the alert message")
end
someone can help me? thanks
2 replies
-
Dear David,
A good opportunity to talk to our experts about this would be one of our API workshops.
Either on Fridays at 10:00 (mainly in German) or Mondays at 17:00 (in English).You can register for the workshops here:
Friday:
https://zoom.us/webinar/register/WN_NDOVEq1uT_20mzSdpznlWQ
Monday:
https://zoom.us/webinar/register/WN_tNnu2wwPSHWtwZQvj3egFwBest, Jörg
-
I have NOT used bexio.. but this page defines the oAuth steps.
https://docs.bexio.com/oauth/oauth/index.html
First.. verify these steps using a development platform ... Postman is a typical one.. I use Katalon Studio to build api regression tests.. Choose one.. Then verify each API call and the required headers / query parameters... From there.. it is a pretty easy translation into the HTTP syntax as you have posted above.
Cheers.
Content aside
- 5 yrs agoLast active
- 2Replies
- 1349Views