Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.69 KB

CrossSellApi.md

File metadata and controls

64 lines (43 loc) · 1.69 KB

Flipdish.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 Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.CrossSellApi();
let appId = "appId_example"; // String | 
let menuId = 56; // Number | 
let menuItemId = [null]; // [Number] | 
let limit = 56; // Number | 
let totalValue = 3.4; // Number | 
apiInstance.getCrossSellMenuItems(appId, menuId, menuItemId, limit, totalValue, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String
menuId Number
menuItemId [Number]
limit Number
totalValue Number

Return type

RestApiResultCrossSellMenuItems

Authorization

oauth2

HTTP request headers

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