Skip to content

Commit

Permalink
Merge pull request pabluk#8 from pabluk/doc-api-key-details
Browse files Browse the repository at this point in the history
Update examples on README.rst
  • Loading branch information
pabluk authored Apr 3, 2021
2 parents 6093bb5 + 62b4613 commit 999e928
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ See more details on https://libgravatar.readthedocs.org/
Gravatar API
~~~~~~~~~~~~

Gravatar API require no authentication to get images and profiles URLs.
Gravatar API requires no authentication to get images and profiles URLs.

Getting the user profile image::

Expand All @@ -45,19 +45,21 @@ Getting the profile URL::
Gravatar XML-RPC API
~~~~~~~~~~~~~~~~~~~~

The XML-RPC API require authentication.
The XML-RPC API requires authentication.

You can use your Gravatar.com password::
You can use your Gravatar.com's email and password::

from libgravatar import GravatarXMLRPC
g = GravatarXMLRPC('user@domain', password='1234')
g = GravatarXMLRPC('name@example.com', password='1234')
g.test() # test the API


or if you have an account at Wordpress.com you can use your API Key::
or if you have an account at Wordpress.com you can use your email and
API key. You can find your API key at https://apikey.wordpress.com/
just be sure to pass to the function your email instead of your username::

from libgravatar import GravatarXMLRPC
g = GravatarXMLRPC('user@domain', apikey='1234')
g = GravatarXMLRPC('name@example.com', apikey='1234')
g.test() # test the API


Expand Down

0 comments on commit 999e928

Please sign in to comment.