Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.03 KB

File metadata and controls

68 lines (49 loc) · 2.03 KB

CrossSellApi

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

Method HTTP request Description
getCrossSellMenuItems GET /api/v1.0/{appId}/crossSell/menuItems

getCrossSellMenuItems

RestApiResultCrossSellMenuItems getCrossSellMenuItems(appId, menuId, menuItemId, limit, totalValue)

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.CrossSellApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

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

CrossSellApi apiInstance = new CrossSellApi();
String appId = "appId_example"; // String | 
Integer menuId = 56; // Integer | 
List<Integer> menuItemId = Arrays.asList(56); // List<Integer> | 
Integer limit = 56; // Integer | 
Double totalValue = 3.4D; // Double | 
try {
    RestApiResultCrossSellMenuItems result = apiInstance.getCrossSellMenuItems(appId, menuId, menuItemId, limit, totalValue);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CrossSellApi#getCrossSellMenuItems");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
appId String
menuId Integer
menuItemId List<Integer>
limit Integer
totalValue Double

Return type

RestApiResultCrossSellMenuItems

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml