public interface ImgurAPI
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
server |
| Modifier and Type | Method and Description |
|---|---|
void |
postImage(java.lang.String auth,
java.lang.String title,
java.lang.String description,
java.lang.String albumId,
java.lang.String username,
retrofit.mime.TypedFile file,
retrofit.Callback<ImageResponse> cb) |
static final java.lang.String server
@POST(value="/3/image")
void postImage(@Header(value="Authorization")
java.lang.String auth,
@Query(value="title")
java.lang.String title,
@Query(value="description")
java.lang.String description,
@Query(value="album")
java.lang.String albumId,
@Query(value="account_url")
java.lang.String username,
@Body
retrofit.mime.TypedFile file,
retrofit.Callback<ImageResponse> cb)
auth - #Type of authorization for uploadtitle - #Title of imagedescription - #Description of imagealbumId - #ID for album (if the user is adding this image to an album)username - username for uploadfile - imagecb - Callback used for success/failures