Skip to content

Instantly share code, notes, and snippets.

View jaswilli's full-sized avatar

Jason Williams jaswilli

  • AuditBoard
  • Boulder, CO
View GitHub Profile
@jaswilli
jaswilli / client_credentials_sdk_example.py
Created August 10, 2017 14:28
An example of using the Globus Python SDK and the client credentials grant
import globus_sdk
# Client ID and secret created at https://developers.globus.org
CLIENT_ID = '25b98327-738c-41f8-b1dd-62490e97d9a3'
CLIENT_SECRET = '<secret>'
# The scopes for the resources that will be accessed by this script
SCOPE = 'urn:globus:auth:scope:transfer.api.globus.org:all'
TUTORIAL_ENDPOINT_ID = 'ddb59aef-6d04-11e5-ba46-22000b92c6ec'

Keybase proof

I hereby claim:

  • I am jaswilli on github.
  • I am jaswilli (https://keybase.io/jaswilli) on keybase.
  • I have a public key whose fingerprint is 3F6E FCC6 7240 540D C0F7 36CF A482 2F6D 8C07 906F

To claim this, I am signing this object:

#!/bin/bash
cat $1 | xargs -t -I {} cp $2/{} $3