rsstootalizer/verify_credentials.bash

5 lines
292 B
Bash
Raw Normal View History

2017-04-21 19:45:58 +00:00
#!/bin/bash
curl -X GET --header "Authorization: Bearer ${1}" "${2}/api/v1/accounts/verify_credentials" 2>/dev/null
#https://cloud.digitalocean.com/v1/oauth/token?client_id=CLIENT_ID&client_secret=CLIENT_SECRET&grant_type=authorization_code&code=AUTHORIZATION_CODE&redirect_uri=CALLBACK_URL