Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chemspider API Key #18

Open
mwleklin opened this issue Oct 19, 2018 · 1 comment
Open

Chemspider API Key #18

mwleklin opened this issue Oct 19, 2018 · 1 comment

Comments

@mwleklin
Copy link

Just activated my new Chemspider API key.
It works with the online version of Chemspider but won't work in ChemSpiPy

I am using the "Consumer Key"

cs = ChemSpider('')
c1 = cs.get_compound(236)
c1.inchi

I am receiving an error about invalid security token.

line 166, in request
raise ChemSpiPyAuthError('Invalid security token. Did you copy the entire token?')

Thanks for any assistance.

@mcs07
Copy link
Owner

mcs07 commented Oct 19, 2018

Looks like you are running an old version of ChemSpiPy. Only v2.0.0 works with the current REST API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants