Skip to content

Instantly share code, notes, and snippets.

@bradherman
Created December 20, 2013 09:47
Show Gist options
  • Select an option

  • Save bradherman/8052588 to your computer and use it in GitHub Desktop.

Select an option

Save bradherman/8052588 to your computer and use it in GitHub Desktop.
Shelfari API example
curl 'http://www.shelfari.com/ws/json/ShelfariService.ashx' --data-binary '{"id":0,"method":"getShelfBooks","params":{"0":2504331,"1":2504331,"2":2,"3":"","4":"dateadded","5":2,"6":40,"7":0,"8":160}}' --compressed
0 - id of lookup
1 - id of you
2 - type of search (0: all, 1: favorites, 2: plans to read, 3: wishlist, 4: read, 5: owns, 6: reading, 100: common)
3 - leave blank
4 - sort type (dateadded, rating, opinions, datepublished, author, title)
5 - page
6 - 40
7 - 0
8 - 160 (160: 24, 100: 34, 80: 40)
http://www.shelfari.com/ws/json/ShelfariService.ashx?id=0&method=getShelfBooks&params[0]=2504331&params[1]=2504331&params[2]=2&params[3]=&params[4]=dateadded&params[5]=2&params[6]=40&params[7]=0&params[8]=160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment