Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 3.46 KB

File metadata and controls

114 lines (80 loc) · 3.46 KB

AuditLogsApi

All URIs are relative to https://api.flipdish.co

Method HTTP request Description
addOrderAuditLog POST /api/v1.0/auditlogs/orders/{orderId}
addStoreAuditLogEvent POST /api/v1.0/auditlogs/stores/{storeId}

addOrderAuditLog

addOrderAuditLog(orderId, externalEventCreate)

Example

// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.AuditLogsApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");

AuditLogsApi apiInstance = new AuditLogsApi();
Integer orderId = 56; // Integer | 
List<ExternalStoreAuditLog> externalEventCreate = Arrays.asList(new ExternalStoreAuditLog()); // List<ExternalStoreAuditLog> | 
try {
    apiInstance.addOrderAuditLog(orderId, externalEventCreate);
} catch (ApiException e) {
    System.err.println("Exception when calling AuditLogsApi#addOrderAuditLog");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
orderId Integer
externalEventCreate List<ExternalStoreAuditLog>

Return type

null (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

addStoreAuditLogEvent

addStoreAuditLogEvent(storeId, externalEventCreate)

Example

// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.AuditLogsApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");

AuditLogsApi apiInstance = new AuditLogsApi();
Integer storeId = 56; // Integer | 
List<ExternalStoreAuditLog> externalEventCreate = Arrays.asList(new ExternalStoreAuditLog()); // List<ExternalStoreAuditLog> | 
try {
    apiInstance.addStoreAuditLogEvent(storeId, externalEventCreate);
} catch (ApiException e) {
    System.err.println("Exception when calling AuditLogsApi#addStoreAuditLogEvent");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
storeId Integer
externalEventCreate List<ExternalStoreAuditLog>

Return type

null (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml