I am trying to write an app to communicate with REST API. The api provider gives the following example.
<code>curl -X POST \
https://www.wix.com/oauth/access \
-H 'Content-Type: application/json' \
-d '{
"grant_type": "authorization_code",
"client_id": <APP_ID>,
"client_secret": <APP_SECRET>,
"code": <AUTH_CODE>
} </code>
I guess in B4A it should be done with httpjob.postbytes? But I am not sure how... Can anyone help me translate the above to B4A codes?
<code>curl -X POST \
https://www.wix.com/oauth/access \
-H 'Content-Type: application/json' \
-d '{
"grant_type": "authorization_code",
"client_id": <APP_ID>,
"client_secret": <APP_SECRET>,
"code": <AUTH_CODE>
} </code>
I guess in B4A it should be done with httpjob.postbytes? But I am not sure how... Can anyone help me translate the above to B4A codes?