public interface BynderApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<retrofit2.Response<FinaliseResponse>> |
finaliseUpload(Map<String,String> params)
Finalises a completely uploaded file.
|
io.reactivex.Observable<retrofit2.Response<String>> |
getAccessToken()
Gets a temporary access token pair once the user already authorised the request token pair.
|
io.reactivex.Observable<retrofit2.Response<List<Brand>>> |
getBrands()
Gets list of the brands.
|
io.reactivex.Observable<retrofit2.Response<String>> |
getClosestS3Endpoint()
Gets the URL of the Amazon S3 bucket-endpoint in the region closest to the server.
|
io.reactivex.Observable<retrofit2.Response<DownloadUrl>> |
getMediaDownloadUrl(String mediaId)
Gets the download file URL for a specific media id.
|
io.reactivex.Observable<retrofit2.Response<DownloadUrl>> |
getMediaDownloadUrl(String mediaId,
String mediaItemId)
Gets the download file URL for specific media item id.
|
io.reactivex.Observable<retrofit2.Response<Media>> |
getMediaInfo(Map<String,String> params)
Gets all the media information for a specific media id.
|
io.reactivex.Observable<retrofit2.Response<List<Media>>> |
getMediaList(Map<String,String> params)
Gets a list of media assets filtered by parameters.
|
io.reactivex.Observable<retrofit2.Response<Map<String,Metaproperty>>> |
getMetaproperties(Map<String,String> params)
Gets map of the metaproperties.
|
io.reactivex.Observable<retrofit2.Response<PollStatus>> |
getPollStatus(Map<String,String> params)
Gets poll processing status of finalised files.
|
io.reactivex.Observable<retrofit2.Response<String>> |
getRequestToken()
Gets temporary request token pair.
|
io.reactivex.Observable<retrofit2.Response<List<Tag>>> |
getTags()
Gets list of the tags.
|
io.reactivex.Observable<retrofit2.Response<UploadRequest>> |
getUploadInformation(Map<String,String> params)
Initialises a file upload with Bynder and returns authorisation information to allow
uploading to the Amazon S3 bucket-endpoint.
|
io.reactivex.Observable<retrofit2.Response<User>> |
login(Map<String,String> params)
Logs in to Bynder with a username and password pair.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
registerChunk(Map<String,String> params)
Registers an uploaded chunk in Bynder.
|
io.reactivex.Observable<retrofit2.Response<SaveMediaResponse>> |
saveMedia(Map<String,String> params)
Saves a new media asset in Bynder.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
setMediaProperties(Map<String,String> params)
Updates the media properties (metadata) for a specific media id.
|
@FormUrlEncoded @POST(value="/api/v4/users/login/") io.reactivex.Observable<retrofit2.Response<User>> login(@FieldMap Map<String,String> params)
params - FieldMap with parameters.Observable with the User information.@POST(value="/api/v4/oauth/request_token/") io.reactivex.Observable<retrofit2.Response<String>> getRequestToken()
Observable with the request token pair information.@POST(value="/api/v4/oauth/access_token/") io.reactivex.Observable<retrofit2.Response<String>> getAccessToken()
Observable with the access token pair information.@GET(value="/api/v4/brands/") io.reactivex.Observable<retrofit2.Response<List<Brand>>> getBrands()
Observable with list of Brand.@GET(value="/api/v4/tags/") io.reactivex.Observable<retrofit2.Response<List<Tag>>> getTags()
Observable with list of Tag.@GET(value="/api/v4/metaproperties/") io.reactivex.Observable<retrofit2.Response<Map<String,Metaproperty>>> getMetaproperties(@QueryMap Map<String,String> params)
params - QueryMap with parameters.Observable with Map of metaproperties.@GET(value="/api/v4/media/") io.reactivex.Observable<retrofit2.Response<List<Media>>> getMediaList(@QueryMap Map<String,String> params)
params - QueryMap with parameters.Observable with list of Media.@GET(value="/api/v4/media/") io.reactivex.Observable<retrofit2.Response<Media>> getMediaInfo(@QueryMap Map<String,String> params)
params - QueryMap with parameters.Observable with Media information.@GET(value="/api/v4/media/{id}/download/")
io.reactivex.Observable<retrofit2.Response<DownloadUrl>> getMediaDownloadUrl(@Path(value="id")
String mediaId)
mediaId - Media id of which we want to get the download URL.Observable with the DownloadUrl information of the media.@GET(value="/api/v4/media/{id}/download/{itemId}/")
io.reactivex.Observable<retrofit2.Response<DownloadUrl>> getMediaDownloadUrl(@Path(value="id")
String mediaId,
@Path(value="itemId")
String mediaItemId)
mediaId - Media id of which the media item belongs to.mediaItemId - Media item id of which we want to get the download URL.Observable with the DownloadUrl information of the media item.@FormUrlEncoded @POST(value="/api/v4/media/") io.reactivex.Observable<retrofit2.Response<Void>> setMediaProperties(@FieldMap Map<String,String> params)
params - FieldMap with parameters.Observable with the Response.@FormUrlEncoded @POST(value="/api/upload/init/") io.reactivex.Observable<retrofit2.Response<UploadRequest>> getUploadInformation(@FieldMap Map<String,String> params)
params - FieldMap with parameters.Observable with UploadRequest authorisation information.@GET(value="/api/upload/endpoint/") io.reactivex.Observable<retrofit2.Response<String>> getClosestS3Endpoint()
Observable with the URL.@FormUrlEncoded @POST(value="/api/v4/upload/") io.reactivex.Observable<retrofit2.Response<Void>> registerChunk(@FieldMap Map<String,String> params)
params - FieldMap with parameters.Observable with the Response.@FormUrlEncoded @POST(value="/api/v4/upload/") io.reactivex.Observable<retrofit2.Response<FinaliseResponse>> finaliseUpload(@FieldMap Map<String,String> params)
params - FieldMap with parameters.Observable with FinaliseResponse information.@GET(value="/api/v4/upload/poll/") io.reactivex.Observable<retrofit2.Response<PollStatus>> getPollStatus(@QueryMap Map<String,String> params)
params - QueryMap with parameters.Observable with PollStatus information.@FormUrlEncoded @POST(value="/api/v4/media/save/") io.reactivex.Observable<retrofit2.Response<SaveMediaResponse>> saveMedia(@FieldMap Map<String,String> params)
params - FieldMap with parameters.Observable with the SaveMediaResponse information.Copyright © 2017. All rights reserved.