Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 535 Bytes

CoverAPI.md

File metadata and controls

13 lines (11 loc) · 535 Bytes

CoverAPI

This part of the library returns the urls covers of authors and books. This is mainly a "low level function" as it's easier to call, for example work.Cover() to get the url cover of a certain work.

CoverAPI Examples

    cover := gol.GetBookCoverURL("olid", "OL4554174M", "S")
    // Output:
    // http://covers.openlibrary.org/b/olid/OL4554174M-S.jpg
    
    cover := gol.GetAuthorCoverURL("olid", "OL229501A", "S")
    // Output:
    // http://covers.openlibrary.org/a/olid/OL229501A-S.jpg