Approve OAuth authorization
curl --request POST \
--url https://api.peel.sh/oauth/authorize \
--header 'Content-Type: application/json' \
--header 'Key: <api-key>' \
--data '
{
"client_id": "<string>",
"code_challenge": "<string>",
"redirect_uri": "<string>",
"code_challenge_method": "S256",
"csrf_token": "<string>",
"scope": "<string>",
"state": "<string>"
}
'const options = {
method: 'POST',
headers: {Key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client_id: '<string>',
code_challenge: '<string>',
redirect_uri: '<string>',
code_challenge_method: 'S256',
csrf_token: '<string>',
scope: '<string>',
state: '<string>'
})
};
fetch('https://api.peel.sh/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/oauth/authorize"
payload = {
"client_id": "<string>",
"code_challenge": "<string>",
"redirect_uri": "<string>",
"code_challenge_method": "S256",
"csrf_token": "<string>",
"scope": "<string>",
"state": "<string>"
}
headers = {
"Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}Approve OAuth authorization
POST
/
oauth
/
authorize
Approve OAuth authorization
curl --request POST \
--url https://api.peel.sh/oauth/authorize \
--header 'Content-Type: application/json' \
--header 'Key: <api-key>' \
--data '
{
"client_id": "<string>",
"code_challenge": "<string>",
"redirect_uri": "<string>",
"code_challenge_method": "S256",
"csrf_token": "<string>",
"scope": "<string>",
"state": "<string>"
}
'const options = {
method: 'POST',
headers: {Key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client_id: '<string>',
code_challenge: '<string>',
redirect_uri: '<string>',
code_challenge_method: 'S256',
csrf_token: '<string>',
scope: '<string>',
state: '<string>'
})
};
fetch('https://api.peel.sh/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/oauth/authorize"
payload = {
"client_id": "<string>",
"code_challenge": "<string>",
"redirect_uri": "<string>",
"code_challenge_method": "S256",
"csrf_token": "<string>",
"scope": "<string>",
"state": "<string>"
}
headers = {
"Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}⌘I