...
Code Block |
---|
$ curl "https://api.us.onelogin.com/auth/oauth2/v2/token" -X POST -H "Authorization: client_id:*****8b97d64318fe, client_secret:*********78c4a5527ced2" -H "Content-Type: application/json" -d '{"grant_type":"client_credentials"}' {"access_token":"*************e36a8d0e7a00bd93187defd","created_at":"2020-01-28T13:51:43.857Z", "expires_in":36000,"refresh_token":"bd66d859bd484c4d0*******","token_type":"bearer", "account_id":162360} $ |
Take note of access token for below commands.
...
Code Block |
---|
$ curl -XGET -H "Authorization: bearer:*************e36a8d0e7a00bd93187defd" "https://api.us.onelogin.com/api/1/users/custom_attributes" {"status":{"error":false,"code":200,"type":"success","message":"Success"},"data":[[]]} $ |
Status | ||||
---|---|---|---|---|
|
...