Skip to content

Instantly share code, notes, and snippets.

@gsong
Last active August 29, 2015 14:07
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 gsong/a5da13b5ad59282860be to your computer and use it in GitHub Desktop.
Save gsong/a5da13b5ad59282860be to your computer and use it in GitHub Desktop.
Test to validate python-epo-ops-client
import platform
import epo_ops
registered_client = epo_ops.RegisteredClient(
key='h07O7iAKj3stHFjGCAZSgFhPHIwDmTqE',
secret='QjzSphsngYD55em0'
)
response = registered_client.published_data(
reference_type='publication',
input=epo_ops.models.Docdb('1000000', 'EP', 'A1')
)
print("Python version: {}".format(platform.python_version()))
print("Token: {}".format(registered_client.access_token.token))
print("Response status code: {}".format(response.status_code))
print("Response text: {}".format(response.text))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment