3 ms·
Wrapping here is literally just ``` #!/usr/bin/env bash creds={path to creds} basepath={url basepath} url={parse from args} curl -H "Authorizatio
by JamesSwift 6mo ago
Wrapping here is literally just
```
#!/usr/bin/env bash
creds={path to creds}
basepath={url basepath}
url={parse from args}
curl -H "Authorization: #{creds}" "#{basepath}/#{url}" $rest_of_args
```
Just a way to read/set the auth and then calling curl. Its generalizable to nearly all apis out there. It requires no work by the provider and you can shape it however you need.