Add id lookup
This commit is contained in:
parent
bb9f8445ad
commit
58b854c089
1 changed files with 12 additions and 0 deletions
12
.zshrc
12
.zshrc
|
|
@ -335,6 +335,18 @@ getprodadsktoken() {
|
||||||
| jq -r '.access_token'
|
| jq -r '.access_token'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
devidlookup() {
|
||||||
|
curl -s -H "Authorization: Bearer ${$(getdevadsktoken)}" -H 'Content-Type: application/json' "https://developer-dev.api.autodesk.com/userprofile/v1/users/${1}" | jq -r .userId
|
||||||
|
}
|
||||||
|
|
||||||
|
stageidlookup() {
|
||||||
|
curl -s -H "Authorization: Bearer ${$(getstageadsktoken)}" -H 'Content-Type: application/json' "https://developer-stg.api.autodesk.com/userprofile/v1/users/${1}" | jq -r .userId
|
||||||
|
}
|
||||||
|
|
||||||
|
prodidlookup() {
|
||||||
|
curl -s -H "Authorization: Bearer ${$(getprodadsktoken)}" -H 'Content-Type: application/json' "https://developer.api.autodesk.com/userprofile/v1/users/${1}" | jq -r .userId
|
||||||
|
}
|
||||||
|
|
||||||
# load-nvm() {
|
# load-nvm() {
|
||||||
# export NVM_DIR="$HOME/.nvm"
|
# export NVM_DIR="$HOME/.nvm"
|
||||||
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue