Skip to content

Commit

Permalink
#93 add eg of getting works by DOI to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Feb 11, 2021
1 parent 54bebe7 commit 785dd25
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,21 @@ Initialize a client
Works route

.. code-block:: python
# query
x = cr.works(query = "ecology")
x['message']
x['message']['total-results']
x['message']['items']
# fetch data by DOI
cr.works(ids = '10.1371/journal.pone.0033693')
Members route

.. code-block:: python
# ids here is the Crossref Member ID; 98 = Hindawi
cr.members(ids = 98, works = True)
Citation counts
Expand Down

1 comment on commit 785dd25

@dpriskorn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😃

Please sign in to comment.