Skip to content

Instantly share code, notes, and snippets.

@obabawale
Forked from joslynesser/oauth_10a_curl.sh
Created March 24, 2018 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obabawale/6a371ca107beb918897b30825791b794 to your computer and use it in GitHub Desktop.
Save obabawale/6a371ca107beb918897b30825791b794 to your computer and use it in GitHub Desktop.
OAuth 1.0a Curl Request
# Replace oauth_consumer_key with your consumer key
# Replace oauth_token with your access token
# Replace oauth_signature with "your_consumer_secret%26your_access_token_secret"
# Note that the oauth_nonce must change and be unique for every request
curl -X GET 'https://yoursite.desk.com/api/v1/account/verify_credentials.json' -H 'Authorization: OAuth oauth_version="1.0",oauth_timestamp=1321473112,oauth_nonce=937459123,oauth_signature_method="PLAINTEXT",oauth_consumer_key="nMu4u9pLRfDrxhPVK5yn",oauth_token="ivouGxpsJbyIU5viPKOO",oauth_signature="vLr9MjzowzVwbvREpWhIVQMJQI0G7Pin6KHCoXak%26igQY0L2bcbwonZTC4kG5ulZxTMTDW0K0zIyceSuF"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment