+ * Sample code showing how to delete footers for a personnel
+public class DeleteFooters {
+ static String basePath = "https://testapi2.braango.com/v2/braango";
+ public static void main(String[] args) {
+ // TODO Auto-generated method stub
+ ApiClient braangoApiClient = new ApiClient();
+ // TEST auth token. Please contact
+ // sales@braango.com to have one
+ String authToken = "ISNWF0P30WM0CMK";
+ braangoApiClient.setBasePath(basePath);
+ // Set the auth_token for api client to
+ // interact with Braango system
+ braangoApiClient.setApiKey(authToken);
+ // Api key is authorization to to access
+ // resources within braango system
+ // This key is different than auth_token
+ // that is used to validate the master account
+ String apiKey = "ISNfTMNOumV3xYNDd2g";
+ // Create personnel api. Personnel is hosted by subDealer
+ FootersApi footerApi = new FootersApi(braangoApiClient);
+ ApiCallback<FootersOutput> callBack = new ApiCallback<FootersOutput>() {
+ public void onUploadProgress(long bytesWritten,
+ .println("Place holder for tracking"
+ + " request progress");
+ public void onSuccess(FootersOutput result, int statusCode,
+ Map<String, List<String>> responseHeaders) {
+ FootersInputBody footersList = result.getBody()
+ List<String> dealerFooters = footersList.getDealerFooters();
+ List<String> clientFooters = footersList.getClientFooters();
+ List<String> supervisorFooters =
+ footersList.getSupervisorFooters();
+ System.out.println("Dealer banners = " + dealerFooters);
+ System.out.println("Client banners = " + clientFooters);
+ System.out.println("Supervisor banners = " + supervisorFooters);
+ public void onFailure(ApiException e, int statusCode,
+ Map<String, List<String>> responseHeaders) {
+ System.out.println("Error is " + statusCode + " "
+ + e.getResponseBody());
+ public void onDownloadProgress(long bytesRead, long contentLength,
+ String subDealerId = "subdealers1002";
+ String salesPersonId = "0550c168-6117-45d5-a95f-e66593e6336b";
+ String accountType = "partner";
+ String footerType = "dealer" ; // "dealer", "client", "supervisor"
+ footerApi.deleteFootersAsync(subDealerId, salesPersonId,footerType, apiKey,accountType, callBack);
+ } catch (ApiException e1) {