Question

Zoho REST API Connection to Docebo

  • 14 October 2022
  • 0 replies
  • 61 views

Hi,

I would like to know if anyone has used Zoho to make an API call to Docebo? Zoho is capable of calling a REST API. The issue is formatting the request properly using Zoho’s Deluge scripting language. If anyone has any ideas, or can point me in the right direction, it would be most appreciated.

And yes, I have been through Docebo’s API documents

url = "https://learning.********.com/oauth2/authorize?client_id="******";
client_id = "*****";
client_secret = "*************************************";
grant_type = "client_credentials";
scope = "api";
headersMap = Map();
paramsMap = Map();
bodyMap = Map();
headersMap.put("client_id",client_id);
headersMap.put("client_secret",client_secret);
headersMap.put("content-type","application/json");
headersMap.put("username","*******");
headersMap.put("password","*******");
headersMap.put("grant_type",grant_type);
headersMap.put("scope",scope);
response = invokeurl
[
url :url
type :POST
headers:headersMap
];

I’ve gotten a variety of error messages, but seemingly going in the right direction.

One error was: {"error":"invalid_client","error_description":"No client id supplied"}

But added the client_id to the URL.

Latest one is this:

{"error":"invalid_request","error_description":"Invalid or missing response type"}

 

Thank you.


0 replies

Be the first to reply!

Reply