Skip to content

Instantly share code, notes, and snippets.

@delonnewman
Last active March 20, 2018 17:50
Show Gist options
  • Save delonnewman/6fefff18a89fec4a2af211a99e105465 to your computer and use it in GitHub Desktop.
Save delonnewman/6fefff18a89fec4a2af211a99e105465 to your computer and use it in GitHub Desktop.
AUTH='OAuth oauth_consumer_key="0MR6AA46EH0FRSCHVIR0PH9KKX8",oauth_nonce="sMhmFlY",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1521044097729",oauth_version="1.0a",oauth_signature="f3z97KFOYnIRkNHzQc%2B0Qv%2FQdsI%3D"'
CONTENT_TYPE=application/json
API_URI='https://training.vialivetext.com/api/memberships'
ENDPOINT=hierarchy
curl -XPOST -H "Content-type: $CONTENT_TYPE" -H "Authorization: $AUTH" --data "[]" "$API_URI/$ENDPOINT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment