public final class BackendApi extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TICKET_FILE_AUTHOR
Author of the uploaded file.
|
static String |
TICKET_FILE_CREATED
Creation date of the uploaded file.
|
static String |
TICKET_FILE_CUSTOM_DATA
Arbitrary data stored along with the file.
|
static String |
TICKET_FILE_NAME
Name of the file which will be uploaded.
|
static String |
TICKET_FILE_POS_ACCURACY
Geo-position accuracy (meters, decimal) of the provided position.
|
static String |
TICKET_FILE_POS_LAT
Geo-position latitude (degrees, decimal) of the uploaded file.
|
static String |
TICKET_FILE_POS_LON
Geo-position longitude (degrees, decimal) of the uploaded file.
|
static String |
TICKET_FILE_TITLE
Short free-text title of the uploaded file, analogous to the title for a Bambuser broadcast.
|
static String |
TICKET_FILE_TYPE
Type of the file which will be uploaded.
|
Modifier and Type | Method and Description |
---|---|
static Pair<Integer,String> |
getUploadTicketForApplicationId(Context context,
Map<String,String> params,
String applicationId)
Method for doing a POST request to the Bambuser ticket API endpoint, requiring a
Bambuser-provided application ID.
|
public static final String TICKET_FILE_TYPE
public static final String TICKET_FILE_NAME
public static final String TICKET_FILE_CREATED
public static final String TICKET_FILE_AUTHOR
public static final String TICKET_FILE_TITLE
public static final String TICKET_FILE_CUSTOM_DATA
public static final String TICKET_FILE_POS_LAT
public static final String TICKET_FILE_POS_LON
public static final String TICKET_FILE_POS_ACCURACY
public static Pair<Integer,String> getUploadTicketForApplicationId(Context context, Map<String,String> params, String applicationId)
For further information on using this method, see the UploadHelper class in the example app source.
context
- A Context object. Must not be null.params
- Parameters for the ticket endpoint. Some are mandatory. Must not be null.applicationId
- Secret Bambuser-provided application specific ID.