You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if namespace in ['listkey', 'formula', 'sourceid'] or searchtype == 'xref' or (searchtype and namespace == 'cid') or domain == 'sources':
urlid = quote(identifier.encode('utf8'))
Then it would be nice to be able to use the short-hand: sids = pcp.get_sids('US6187568B1', 'PatentID', 'substance', searchtype='xref'),
But doing this produces the wrong query since the operation is explicitly set None in get when setting searchtype.
However, passing on searchtype breaks TestRequest.test_listkey_requests
It's not possible to perform cross-reference queries (version 1.0.3, Python 3.6.1). For instance the query:
https://pubchem.ncbi.nlm.nih.gov/rest/pug/substance/xref/PatentID/US6187568B1/sids/JSON
Can be formulated as:
However, this request 404:s since the ID is sent as payload data instead of inserted in the URL here.
The text was updated successfully, but these errors were encountered: