public interface IBricksetService
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkKey()
Check if an API key is valid.
|
boolean |
checkUserHash(String userHash)
Check if a userHash key is valid.
|
List<AdditionalImages> |
getAdditionalImages(int setId)
Get a list of URLs of additional set images for the specified set.
|
List<Instruction> |
getInstructions(int setId)
Get a list of instructions for the specified set.
|
List<ApiKeyUsage> |
getKeyUsageStats()
Get key usage stats for the last 30 days.
|
List<MinifigCollection> |
getMinifigCollection(GetMinifigCollectionParameters params,
String userHash)
Get a list of minifigs owned/wanted by a user.
|
List<Set> |
getSets(SetParameters params)
Retrieve a list of sets, or more information about a particular one.
|
List<Set> |
getSets(SetParameters params,
String userHash)
Retrieve a list of sets, or more information about a particular one.
|
List<Subtheme> |
getSubthemes(String theme)
Get a list of subthemes for a given theme, with the total number of sets in
each.
|
List<Theme> |
getThemes()
Get a list of themes, with the total number of sets in each.
|
List<UserNotes> |
getUserNotes(String userHash)
Get all of a user's set notes.
|
List<Year> |
getYears(String theme)
Get a list of years for a given theme, with the total number of sets in each.
|
String |
login(String username,
String password)
Log in as a user and retrieve a token that can be used in subsequent API
calls.
|
void |
setCollection(int setId,
SetCollectionParameters params,
String userHash)
Set a user's collection details.
|
void |
setMinifigCollection(String minifigNumber,
SetMinifigCollectionParameters params,
String userHash)
Add/change a user's 'loose' minifig collection.
|
boolean checkKey()
throws BricksetException
BricksetException - if status is not successString login(String username, String password) throws BricksetException
username - A Brickset usernamepassword - A Brickset passwordBricksetException - if status is not successboolean checkUserHash(String userHash) throws BricksetException
userHash - User hash retrieved by the login methodBricksetException - if status is not successList<ApiKeyUsage> getKeyUsageStats() throws BricksetException
BricksetException - if status is not successList<Set> getSets(SetParameters params) throws BricksetException
params - parametersBricksetException - if status is not successList<Set> getSets(SetParameters params, String userHash) throws BricksetException
params - parametersuserHash - userHash, only if user data neededBricksetException - if status is not successList<AdditionalImages> getAdditionalImages(int setId) throws BricksetException
setId - Set IDBricksetException - if status is not successList<Instruction> getInstructions(int setId) throws BricksetException
setId - Set IDBricksetException - if status is not successList<Theme> getThemes() throws BricksetException
BricksetException - if status is not successList<Subtheme> getSubthemes(String theme) throws BricksetException
theme - a themeBricksetException - if status is not successList<Year> getYears(String theme) throws BricksetException
theme - themeBricksetException - if status is not successvoid setCollection(int setId,
SetCollectionParameters params,
String userHash)
throws BricksetException
setId - Set ID.params - parametersuserHash - user hashBricksetException - if status is not successList<UserNotes> getUserNotes(String userHash) throws BricksetException
userHash - user hashBricksetException - if status is not successList<MinifigCollection> getMinifigCollection(GetMinifigCollectionParameters params, String userHash) throws BricksetException
params - parametersuserHash - user hashBricksetException - if status is not successvoid setMinifigCollection(String minifigNumber, SetMinifigCollectionParameters params, String userHash) throws BricksetException
minifigNumber - minifig numberparams - parametersuserHash - user hashBricksetException - if status is not successCopyright © 2020. All rights reserved.