public interface BynderService
AssetBankService.| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<String> |
getAccessToken()
Gets temporary access token pair once the user has already accessed the authorise URL and
logged in through the browser.
|
AssetBankService |
getAssetBankService()
Gets an instance of the asset bank service to perform Bynder Asset Bank operations.
|
URL |
getAuthoriseUrl(String callbackUrl)
Gets the URL needed to open the browser so the user can login and authorise the temporary
request token pair.
|
CollectionService |
getCollectionService()
Gets an instance of the collection service to perform Bynder Collections related operations.
|
io.reactivex.Observable<retrofit2.Response<List<Derivative>>> |
getDerivatives()
Gets the list of the derivatives configured for the current account.
|
io.reactivex.Observable<String> |
getRequestToken()
Gets temporary request token pair used to build the authorise URL and login through the
browser.
|
io.reactivex.Observable<User> |
login(String username,
String password)
Deprecated.
|
void |
logout()
Logout resets your credentials.
|
@Deprecated io.reactivex.Observable<User> login(String username, String password) throws IllegalAccessException
Settings.username - Username/email.password - Password.User information.IllegalAccessException - Check Utils.convertField(Field, Object, Map) for more
information.io.reactivex.Observable<String> getRequestToken()
URL getAuthoriseUrl(String callbackUrl) throws MalformedURLException
callbackUrl - 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.io.reactivex.Observable<String> getAccessToken()
void logout()
Settings have full permission, even after this call, calls to any API endpoint will
still work.io.reactivex.Observable<retrofit2.Response<List<Derivative>>> getDerivatives()
Derivative.AssetBankService getAssetBankService()
AssetBankService.CollectionService getCollectionService()
CollectionService.Copyright © 2018. All rights reserved.