Last active
August 29, 2015 14:07
-
-
Save gsong/a5da13b5ad59282860be to your computer and use it in GitHub Desktop.
Test to validate python-epo-ops-client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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