tests (508B)
1 # poking mangaupdates.com api 2 3 ## Search by title 4 5 ``` 6 api_url='https://api.mangaupdates.com/v1' 7 { 8 cat <<EOF 9 { 10 "search": "Yotsuba", 11 "stype": "title" 12 } 13 EOF 14 } | hget -P -r 'Content-Type: application/json' $api_url/series/search | json/fmt \ 15 > /tmp/json 16 ``` 17 18 ## Get series data 19 20 Note: in the url of web interface, id is encoded in Base36, but api 21 uses normal Base10 numbers. 22 23 ``` 24 api_url='https://api.mangaupdates.com/v1' 25 series_id='23606352927' 26 hget $api_url/series/$series_id | json/fmt \ 27 > /tmp/json 28 ```