Curl: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

21 November 2024

  • curprev 01:5701:57, 21 November 2024 Iwiseman talk contribs 1,512 bytes +1,512 Created page with "=Introduction= This page is to just keep usage of curl for getting data =Getting Access Tokens= <syntaxhighlight lang="bash"> export OAUTH_HOST= export TENANT_ID= export CLIENT_ID= export CLIENT_SECRET= export SCOPE= export DATA_FILE= </syntaxhighlight> Here is how to get an Access Token <syntaxhighlight lang="bash"> export AUTHORIZATION_JSON=$(curl --location --request POST "${OAUTH_HOST}/${TENANT_ID}/oauth2/v2.0/token" \ --header 'Content-Type: application/x-www..."