Skip to content

Instantly share code, notes, and snippets.

@tom-montgomery
Created January 15, 2019 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tom-montgomery/edb837919308260817e0d2ef3d256e7b to your computer and use it in GitHub Desktop.
Save tom-montgomery/edb837919308260817e0d2ef3d256e7b to your computer and use it in GitHub Desktop.
payload = {'data':
{'type':
'dois',
'attributes':
{'doi':
'{}'.format(doi),
'url':
'{}'.format(metadata['permalink'].item()),
'xml':
'{}'.format(xml_encoded)
},
'relationships':
{'client':
{'data':
{'type':
'clients',
'id': 'AUSTINTX.ATXDR'}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment