Skip to content

Instantly share code, notes, and snippets.

@rdhyee
Created September 17, 2015 20:57
Show Gist options
  • Save rdhyee/f6339bead9112619a20c to your computer and use it in GitHub Desktop.
Save rdhyee/f6339bead9112619a20c to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rdhyee
Copy link
Author

rdhyee commented Sep 29, 2015

My mistake. The line in cell 7 above

headers = {'Authorization': DMPTOOL_TOKEN}

should be

headers = {'Authorization': 'Token token={}'.format(DMPTOOL_TOKEN)}

https://gist.github.com/rdhyee/a64c2c5380edc92efe07 shows this fix in operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment