Skip to content

Instantly share code, notes, and snippets.

@cw6365
Created April 18, 2024 12:25
Show Gist options
  • Save cw6365/68e8802f14ff4673232190b84efbdaa8 to your computer and use it in GitHub Desktop.
Save cw6365/68e8802f14ff4673232190b84efbdaa8 to your computer and use it in GitHub Desktop.
curl -X 'POST' \
'https://sandbox.e-sign.co.uk/v3/oauth/applications' \
-H 'accept: application/json' \
-H 'Authorization: Token token="3-s1gn2kSh4r3p01nt!"' \
-H 'Content-Type: application/json' \
-d '{
"oauth_app": {
"name": "Sharepoint user1",
"redirect_uri": "https://test.com",
"scopes": ["read_write"]
}
}'
RETURNS
{
"oauth_app": {
"id": "0c52a929-74a0-4b94-b7dc-72d3304e1a27",
"name": "Sharepoint user1",
"redirect_uri": "https://test.com",
"client_id": "1naoDaGQKr7Oi0r3rhRpNGMntCjjNTwRI-mC93RdoTg",
"client_secret": "9c-UfoV4YUEZfme6UIQwTx99ir_NR4vOXlth3rEQJpM",
"scopes": [
"read_write"
]
},
"links": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment