Skip to content

Instantly share code, notes, and snippets.

@JanAhrens
Last active June 9, 2021 16:31
Show Gist options
  • Save JanAhrens/2172870 to your computer and use it in GitHub Desktop.
Save JanAhrens/2172870 to your computer and use it in GitHub Desktop.
A cURL example to create an OAuth 1.0 request token for the XING API
CONSUMER_KEY="YOUR_CONSUMER_KEY"
CONSUMER_SECRET="YOUR_CONSUMER_SECRET"
curl --request POST --verbose \
"https://api.xing.com/v1/request_token" \
-d "oauth_callback=oob" \
-d "oauth_version=1.0" \
-d "oauth_signature_method=PLAINTEXT" \
-d "oauth_consumer_key=$CONSUMER_KEY" \
-d "oauth_signature=$CONSUMER_SECRET%26"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment