public class BookLookup extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BASE_LOOKUP_URL |
protected static com.neovisionaries.i18n.CountryCode |
DEFAULT_COUNTRY |
protected static int |
DEFAULT_LIMIT |
| Constructor and Description |
|---|
BookLookup() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.json.JSONObject |
executeQuery(String urlString) |
static org.json.JSONObject |
getBookById(long id)
get a book by it's id
|
protected static org.json.JSONObject |
getById(long id)
retrieve a media item by its id
|
static org.json.JSONObject |
topFree()
get the top 100 free books in the default iTunes store
|
static org.json.JSONObject |
topFree(com.neovisionaries.i18n.CountryCode countryCode)
get the top 100 free books in the specified iTunes store
|
static org.json.JSONObject |
topFree(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
get the top (limit) free books in the specified iTunes store
|
static org.json.JSONObject |
topFree(int limit)
get the top (limit) free books in the default iTunes store
|
static org.json.JSONObject |
topPaid()
get the top 100 paid books in the default iTunes store
|
static org.json.JSONObject |
topPaid(com.neovisionaries.i18n.CountryCode countryCode)
get the top 100 paid books in the specified iTunes store
|
static org.json.JSONObject |
topPaid(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
get the top (limit) paid books in the specified iTunes store
|
static org.json.JSONObject |
topPaid(int limit)
get the top (limit) paid books in the default iTunes store
|
protected static final String BASE_LOOKUP_URL
protected static final int DEFAULT_LIMIT
protected static final com.neovisionaries.i18n.CountryCode DEFAULT_COUNTRY
public static org.json.JSONObject getBookById(long id)
throws NoMatchFoundException
id - The id of the bookNoMatchFoundException - if no book is found with the passed idpublic static org.json.JSONObject topFree()
public static org.json.JSONObject topFree(int limit)
limit - the maximum number of books to returnpublic static org.json.JSONObject topFree(com.neovisionaries.i18n.CountryCode countryCode)
countryCode - country code of the itunes store to searchpublic static org.json.JSONObject topFree(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
countryCode - country code of the itunes store to searchlimit - the maximum number of books to returnpublic static org.json.JSONObject topPaid()
public static org.json.JSONObject topPaid(int limit)
limit - the maximum number of books to returnpublic static org.json.JSONObject topPaid(com.neovisionaries.i18n.CountryCode countryCode)
countryCode - country code of the itunes store to searchpublic static org.json.JSONObject topPaid(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
countryCode - country code of the itunes store to searchlimit - the maximum number of books to returnprotected static org.json.JSONObject getById(long id)
throws NoMatchFoundException
id - the itunes id for the itemNoMatchFoundException - if no matching item is foundprotected static org.json.JSONObject executeQuery(String urlString)
Copyright © 2018. All rights reserved.