Skip to content

Commit

Permalink
Merge pull request #19 from ehenneken/export_README_fix
Browse files Browse the repository at this point in the history
Typo correction
  • Loading branch information
ehenneken committed Oct 22, 2015
2 parents 09a1c8f + 6239f4d commit b77a410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions export.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ with in the POST header

Using `curl`, to get the BibTeX for e.g. the record with bibcode `2015ApJS..219...21Z`, you would do

curl -H "Authorization: Bearer <your API token>" -H "Content-Type: application/json" -X POST -d '{"bibcodes":["2015ApJS..219...21Z"]}' https://api.adsabs.harvard.edu/v1/export/bibtex
curl -H "Authorization: Bearer <your API token>" -H "Content-Type: application/json" -X POST -d '{"bibcode":["2015ApJS..219...21Z"]}' https://api.adsabs.harvard.edu/v1/export/bibtex

and the API then responds in JSON with

{u'msg': u'Retrieved 1 abstracts, starting with number 1. Total number selected: 1.', u'export': u'@ARTICLE{2015ApJS..219...21Z,\n author = {{Zhang}, M. and {Fang}, M. and {Wang}, H. and {Sun}, J. and \n\t{Wang}, M. and {Jiang}, Z. and {Anathipindika}, S.},\n title = "{A Deep Near-infrared Survey toward the Aquila Molecular Cloud. I. Molecular Hydrogen Outflows}",\n journal = {\\apjs},\narchivePrefix = "arXiv",\n eprint = {1506.08372},\n primaryClass = "astro-ph.SR",\n keywords = {infrared: ISM, ISM: jets and outflows, shock waves, stars: formation, stars: winds, outflows},\n year = 2015,\n month = aug,\n volume = 219,\n eid = {21},\n pages = {21},\n doi = {10.1088/0067-0049/219/2/21},\n adsurl = {http://adsabs.harvard.edu/abs/2015ApJS..219...21Z},\n adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n}\n\n'}

The get AASTeX back, you use `aastex` as format parameter, and `endnote` for EndNote.
The get AASTeX back, you use `aastex` as format parameter, and `endnote` for EndNote.

0 comments on commit b77a410

Please sign in to comment.