All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| createCustomer | POST /api/v1.0/{appId}/customers | |
| getCustomerById | GET /api/v1.0/{appId}/customers/{customerId} | |
| getCustomers | GET /api/v1.0/{appId}/customers | |
| updateCustomerById | POST /api/v1.0/{appId}/customers/{customerId} |
RestApiResultCustomer createCustomer(appId, customerCreateModel)
// 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.CustomersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
CustomersApi apiInstance = new CustomersApi();
String appId = "appId_example"; // String |
CustomerCreateModel customerCreateModel = new CustomerCreateModel(); // CustomerCreateModel |
try {
RestApiResultCustomer result = apiInstance.createCustomer(appId, customerCreateModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#createCustomer");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| customerCreateModel | CustomerCreateModel |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultCustomer getCustomerById(appId, customerId)
// 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.CustomersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
CustomersApi apiInstance = new CustomersApi();
String appId = "appId_example"; // String |
Integer customerId = 56; // Integer |
try {
RestApiResultCustomer result = apiInstance.getCustomerById(appId, customerId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#getCustomerById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| customerId | Integer |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultCustomers getCustomers(appId, phoneNumber)
// 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.CustomersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
CustomersApi apiInstance = new CustomersApi();
String appId = "appId_example"; // String |
String phoneNumber = "phoneNumber_example"; // String |
try {
RestApiResultCustomers result = apiInstance.getCustomers(appId, phoneNumber);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#getCustomers");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| phoneNumber | String |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultCustomer updateCustomerById(appId, customerId, updateCustomer)
// 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.CustomersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
CustomersApi apiInstance = new CustomersApi();
String appId = "appId_example"; // String |
Integer customerId = 56; // Integer |
CustomerUpdateModel updateCustomer = new CustomerUpdateModel(); // CustomerUpdateModel |
try {
RestApiResultCustomer result = apiInstance.updateCustomerById(appId, customerId, updateCustomer);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#updateCustomerById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| customerId | Integer | ||
| updateCustomer | CustomerUpdateModel |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml