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

documentation incorrect on how to pass parameters to a handler #12

Closed
npdoty opened this issue Aug 8, 2017 · 1 comment
Closed

documentation incorrect on how to pass parameters to a handler #12

npdoty opened this issue Aug 8, 2017 · 1 comment

Comments

@npdoty
Copy link

npdoty commented Aug 8, 2017

Current readme suggests this code for use in Python:
archivenow.push("www.foxnews.com","cc","cc_api_key=$YOUR-Perma-cc-API-KEY")
But actually, when push() is called directly, it seems to expect additional parameters in object form, e.g.:
archivenow.push("www.foxnews.com","cc",{"cc_api_key":"$YOUR-Perma-cc-API-KEY"})

@maturban
Copy link
Member

maturban commented Aug 9, 2017

Thanks for pointing to this. I have updated/fixed the documentation:

archivenow.push("www.foxnews.com","all",{"cc_api_key":"8c37891..."})

['https://perma.cc/BD6D-2JWA', 'https://web.archive.org/web/20170809023423/http://www.foxnews.com', 'http://archive.is/0p5Qp', 'http://www.webcitation.org/6sZspjQvK']

@maturban maturban closed this as completed Aug 9, 2017
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