Skip to content

Got an unexpected keyword argument 'apikey' (out of date README?) #875

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

Closed
c0bra opened this issue Mar 11, 2020 · 1 comment
Closed

Got an unexpected keyword argument 'apikey' (out of date README?) #875

c0bra opened this issue Mar 11, 2020 · 1 comment
Labels
type: docs update documentation change not affecting the code

Comments

@c0bra
Copy link

c0bra commented Mar 11, 2020

Issue Summary

Following the docs in the README, if you specify the apikey as a keyword argument like so:

sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))

You will get the error:

Got an unexpected keyword argument 'apikey'

Other docs in this library show passing in api key as a regular argument, which works

sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))

Perhaps the docs need to be updated?

@childish-sambino
Copy link
Contributor

Looks like both api_key and apikey used to be supported but now it's only api_key as of this #769

I've updated the README.

@childish-sambino childish-sambino added the type: docs update documentation change not affecting the code label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: docs update documentation change not affecting the code
Projects
None yet
Development

No branches or pull requests

2 participants