Can anyone help me to convert the below curl code to blocks.
curl -X POST https://zoom.us/oauth/token -d ‘grant_type=account_credentials’ -d ‘account_id=5yiPLwmTTpQVBnMxOlf32q’ -H ‘Host: zoom.us ’ -H ‘Authorization: Basic aGwbwxOgK6eGHEO0W1DOCv5WCODeVxoet7DFEON7bR23gP5qEW7cmeWCbCEO3ApBEWlRwCVpDWB==’
I use curl to blocks method
but here missing body and ,it does not work properly.
1 Like
Taifun
March 24, 2024, 4:12pm
#2
Use your correctly base64 encoded client secret
And don’t forget to use the Post method together with your data
Then use the Web.GotText event to see, which response content you get
Hello Koders, Introducing Curl-to-Blocks , It converts curl requests into blocks that can be downloaded and added into your project.
Currently, supported options :
-d/–data/–data-binary
-F/–form
-H/–header
-I/–head
-u/–user
compressed
–url
-X/–request
[curlToBlocks]
Version: 1.0 [BETA]
Website: Curl-to-Blocks
This project is currently in beta version, so errors may arise.
Taifun
I try it on postman where it work properly
but kodular show
try it on label
where i send body in kodular in post merthod
Please help me. I do not understood.
Taifun
March 24, 2024, 4:53pm
#9
The blocks look good…
You can try to add another key value pair into your header
Content-Type
application/json
Also what about providing a link to the API documentation?
Taifun
am I blocks are right ?
I following these steps…
Encode the client ID and client secret in base64 format (with a colon between them, e.g. client_id:client_secret
).
Set up your API request header and include your encoded client ID and client secret using the ‘Basic’ HTTP Authentication Scheme (replace HHHHH0000011111
with your encoded credentials).
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Basic HHHHH0000011111"
Set up the body of the access token request using the account_credentials
grant_type
and your account_id
(replace 1234
with your account ID).
"grant_type": "account_credentials",
"account_id": 1234
Send the header and body as a POST request to the token API at https://zoom.us/oauth/token
to get an access token.
The successful response will be the access token.