public class BynderServiceImpl extends Object implements BynderService
BynderService.| Modifier and Type | Method and Description |
|---|---|
static BynderService |
create(Settings settings)
Creates an instance of
BynderService using Settings as parameter. |
io.reactivex.Observable<String> |
getAccessToken()
Check
BynderService for more information. |
AssetBankService |
getAssetBankService()
Check
BynderService for more information. |
URL |
getAuthoriseUrl(String callbackUrl)
Check
BynderService for more information. |
CollectionService |
getCollectionService()
Check
BynderService for more information. |
io.reactivex.Observable<String> |
getRequestToken()
Check
BynderService for more information. |
io.reactivex.Observable<User> |
login(String username,
String password)
Check
BynderService for more information. |
void |
logout()
Check
BynderService for more information. |
public static BynderService create(Settings settings)
BynderService using Settings as parameter.settings - Settings to correctly configure the BynderService instance.BynderService instance to communicate with Bynder API.public io.reactivex.Observable<User> login(String username, String password) throws IllegalAccessException
BynderService for more information.login in interface BynderServiceusername - Username/email.password - Password.User information.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.public io.reactivex.Observable<String> getRequestToken()
BynderService for more information.getRequestToken in interface BynderServicepublic URL getAuthoriseUrl(String callbackUrl) throws MalformedURLException
BynderService for more information.getAuthoriseUrl in interface BynderServicecallbackUrl - Callback URL to be redirected to when login is successful.MalformedURLException - If no protocol is specified, or an unknown protocol is found,
or spec is null while instantiating the URL.public io.reactivex.Observable<String> getAccessToken()
BynderService for more information.getAccessToken in interface BynderServicepublic void logout()
BynderService for more information.logout in interface BynderServicepublic AssetBankService getAssetBankService()
BynderService for more information.getAssetBankService in interface BynderServiceAssetBankService.public CollectionService getCollectionService()
BynderService for more information.getCollectionService in interface BynderServiceCollectionService.Copyright © 2017. All rights reserved.