public interface BynderApi
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<retrofit2.Response<Void>> |
addMediaToCollection(String collectionId,
Map<String,String> params)
Adds media assets to a collection.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
createCollection(Map<String,String> params)
Creates a collection.
|
io.reactivex.Observable<retrofit2.Response<Usage>> |
createUsage(Map<String,String> params)
Creates a usage record for a media asset.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteCollection(Map<String,String> params)
Deletes a collection.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteMedia(Map<String,String> params)
Deletes a media asset.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
deleteUsage(Map<String,String> params)
Deletes a usage record of a media asset.
|
io.reactivex.Observable<retrofit2.Response<FinaliseResponse>> |
finaliseUpload(Map<String,String> params)
Finalises a completely uploaded file.
|
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<Collection>> |
getCollectionInfo(Map<String,String> params)
Gets all the collection information for a specific collection id.
|
io.reactivex.Observable<retrofit2.Response<List<String>>> |
getCollectionMediaIds(String collectionId)
Gets a list of the media assets ids of a collection.
|
io.reactivex.Observable<retrofit2.Response<List<Collection>>> |
getCollections(Map<String,String> params)
Gets list of the collections.
|
io.reactivex.Observable<retrofit2.Response<List<Derivative>>> |
getDerivatives()
Gets list of the account derivatives.
|
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<List<Smartfilter>>> |
getSmartfilters()
Gets list of the smartfilters.
|
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<List<Usage>>> |
getUsage(Map<String,String> params)
Gets all the media assets usage records.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
modifyMedia(Map<String,String> params)
Modifies the media metadata for a specific media id.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
registerChunk(Map<String,String> params)
Registers an uploaded chunk in Bynder.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
removeMediaFromCollection(String collectionId,
Map<String,String> params)
Removes media assets from a collection.
|
io.reactivex.Observable<retrofit2.Response<SaveMediaResponse>> |
saveMedia(Map<String,String> params)
Saves a new media asset in Bynder.
|
io.reactivex.Observable<retrofit2.Response<Void>> |
shareCollection(String collectionId,
Map<String,String> params)
Shares a collection.
|
@GET(value="/api/v4/account/derivatives/") io.reactivex.Observable<retrofit2.Response<List<Derivative>>> getDerivatives()
Observable
with list of Derivative
.@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.@FormUrlEncoded @POST(value="/api/v4/media/") io.reactivex.Observable<retrofit2.Response<Void>> modifyMedia(@FieldMap Map<String,String> params)
params
- FieldMap
with parameters.Observable
with the Response
.@DELETE(value="/api/v4/media/") io.reactivex.Observable<retrofit2.Response<Void>> deleteMedia(@QueryMap Map<String,String> params)
params
- QueryMap
with parameters.Observable
with the Response
.@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/media/usage/") io.reactivex.Observable<retrofit2.Response<Usage>> createUsage(@FieldMap Map<String,String> params)
params
- FieldMap
with parameters.Observable
with Usage
information.@GET(value="/api/media/usage/") io.reactivex.Observable<retrofit2.Response<List<Usage>>> getUsage(@QueryMap Map<String,String> params)
params
- QueryMap
with parameters.Observable
with list of Usage
.@DELETE(value="/api/media/usage/") io.reactivex.Observable<retrofit2.Response<Void>> deleteUsage(@QueryMap Map<String,String> params)
params
- QueryMap
with parameters.Observable
with the Response
.@GET(value="/api/v4/smartfilters/") io.reactivex.Observable<retrofit2.Response<List<Smartfilter>>> getSmartfilters()
Observable
with List of smartfilters.@GET(value="/api/v4/collections/") io.reactivex.Observable<retrofit2.Response<List<Collection>>> getCollections(@QueryMap Map<String,String> params)
params
- QueryMap
with parameters.Observable
with list of Collection
.@GET(value="/api/v4/collections/") io.reactivex.Observable<retrofit2.Response<Collection>> getCollectionInfo(@QueryMap Map<String,String> params)
params
- QueryMap
with parameters.Observable
with Collection
information.@FormUrlEncoded @POST(value="/api/v4/collections/") io.reactivex.Observable<retrofit2.Response<Void>> createCollection(@FieldMap Map<String,String> params)
params
- FieldMap
with parameters.Observable
with the Response
.@DELETE(value="/api/v4/collections/") io.reactivex.Observable<retrofit2.Response<Void>> deleteCollection(@QueryMap Map<String,String> params)
params
- QueryMap
with parameters.Observable
with the Response
.@GET(value="/api/v4/collections/{id}/media/") io.reactivex.Observable<retrofit2.Response<List<String>>> getCollectionMediaIds(@Path(value="id") String collectionId)
collectionId
- Collection id of which we want to get the media assets ids.Observable
with list of media assets ids.@FormUrlEncoded @POST(value="/api/v4/collections/{id}/media/") io.reactivex.Observable<retrofit2.Response<Void>> addMediaToCollection(@Path(value="id") String collectionId, @FieldMap Map<String,String> params)
collectionId
- Collection id to which we want to add media assets.params
- FieldMap
with parameters.Observable
with the Response
.@DELETE(value="/api/v4/collections/{id}/media/") io.reactivex.Observable<retrofit2.Response<Void>> removeMediaFromCollection(@Path(value="id") String collectionId, @QueryMap Map<String,String> params)
collectionId
- Collection id from which we want to remove media assets.params
- QueryMap
with parameters.Observable
with the Response
.@FormUrlEncoded @POST(value="/api/v4/collections/{id}/share/") io.reactivex.Observable<retrofit2.Response<Void>> shareCollection(@Path(value="id") String collectionId, @FieldMap Map<String,String> params)
collectionId
- Id of the collection we want to share.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 © 2019. All rights reserved.