To get Access Token, run the following command in your terminal, but make sure to change "YOUR_ACCOUNT_USERNAME" and "YOUR_ACCOUNT_PASSWORD":
curl --location --request POST 'https://also.allthingstalk.io/login' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=password' --data-urlencode 'username=YOUR_ACCOUNT_USERNAME' --data-urlencode 'password=YOUR_ACCOUNT_PASSWORD' --data-urlencode 'client_id=web'
If username/password is correct, you'll get a response containing your "MfaUid" and "UserId". Fill them in "USERID_FROM_RESPONSE" and "MFAUID_FROM_RESPONSE" in the following command, along with your MFA code in "YOUR_MFA_CODE":
curl --location --request POST 'https://also.allthingstalk.io/login' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=mfa' --data-urlencode 'userid=USERID_FROM_RESPONSE' --data-urlencode 'mfauid=MFAUID_FROM_RESPONSE' --data-urlencode 'client_id=web' --data-urlencode 'code=YOUR_MFA_CODE'
Comments
0 comments
Article is closed for comments.