All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| addUserNote | POST /api/v1.0/users/{userId}/AddUserNote | |
| addUserToRole | POST /api/v1.0/users/{userId}/AddUserToRole/{roleName} | |
| anonymizeUser | POST /api/v1.0/users/{userId}/AnonymizeUser | |
| blockUserPhoneNumber | POST /api/v1.0/users/{userId}/BlockUserPhoneNumber | |
| createUserDeliveryLocation | POST /api/v1.0/users/{userId}/deliveryLocations | |
| getPreviousOrderCountForStore | GET /api/v1.0/users/{userId}/previousordercount/{storeId} | |
| getRestaurantUserAccounts | GET /api/v1.0/users/{userId}/RestaurantUserAccounts | |
| getRestaurantUserStores | GET /api/v1.0/users/{userId}/RestaurantUserStores | |
| getRoles | GET /api/v1.0/users/roles | |
| getRolesAndUnassignedRoles | GET /api/v1.0/users/{userId}/roles | |
| getUserById | GET /api/v1.0/users/{userId} | |
| getUserDeliveryLocationsForAdmin | GET /api/v1.0/users/{userId}/deliveryLocations | |
| getUserNotes | GET /api/v1.0/users/{userId}/UserNotes | |
| getUserOrderByIdForAdmin | GET /api/v1.0/users/{userId}/orders/{orderId} | |
| getUserOrdersForAdmin | GET /api/v1.0/users/{userId}/orders | |
| getUserSmsConversationItems | GET /api/v1.0/users/{userId}/smsConversationItems | |
| hideUserDeliveryLocation | POST /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/hide | |
| markUserAsFraudulent | POST /api/v1.0/users/{userId}/MarkUserAsFraudulent | |
| markUserAsSuspicious | POST /api/v1.0/users/{userId}/MarkUserAsSuspicious | |
| removeFlipdishAccountIdForUser | POST /api/v1.0/users/{userId}/RemoveFlipdishAccountId/{accountId} | |
| removeUserFromRole | POST /api/v1.0/users/{userId}/RemoveUserFromRole/{roleName} | |
| resetMfa | POST /api/v1.0/users/{userId}/ResetMfa | |
| searchFlipdishAccounts | GET /api/v1.0/users/searchFlipdishAccounts | |
| searchUsers | GET /api/v1.0/users/search | |
| sendUserPushNotification | POST /api/v1.0/users/{userId}/pushNotifications | |
| sendUserSms | POST /api/v1.0/users/{userId}/sms | |
| setCustomerName | POST /api/v1.0/users/{userId}/SetCustomerName | |
| setFlipdishAccountIdForUser | POST /api/v1.0/users/{userId}/SetFlipdishAccountId/{accountId} | |
| setUserDeliveryLocationCoordinates | POST /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/coordinates | |
| setUserDeliveryLocationField | POST /api/v1.0/users/{userId}/deliveryLocations/{deliveryLocationId}/fields | |
| setUserLanguage | POST /api/v1.0/users/{userId}/SetLanguage/{languageId} | |
| unblockUserPhoneNumber | POST /api/v1.0/users/{userId}/UnblockUserPhoneNumber |
RestApiDefaultResponse addUserNote(userId, note)
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.UsersApi();
let userId = 56; // Number |
let note = "note_example"; // String |
apiInstance.addUserNote(userId, note, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| note | String |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiResultUserRole addUserToRole(userId, roleName)
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.UsersApi();
let userId = 56; // Number |
let roleName = "roleName_example"; // String |
apiInstance.addUserToRole(userId, roleName, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| roleName | String |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse anonymizeUser(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.anonymizeUser(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse blockUserPhoneNumber(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.blockUserPhoneNumber(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse createUserDeliveryLocation(userId, request)
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.UsersApi();
let userId = 56; // Number |
let request = new Flipdish.CreateUserDeliveryLocationRequest(); // CreateUserDeliveryLocationRequest |
apiInstance.createUserDeliveryLocation(userId, request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| request | CreateUserDeliveryLocationRequest |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiStringResult getPreviousOrderCountForStore(userId, storeId)
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.UsersApi();
let userId = 56; // Number |
let storeId = 56; // Number |
apiInstance.getPreviousOrderCountForStore(userId, storeId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| storeId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiArrayResultUserFlipdishAccount getRestaurantUserAccounts(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.getRestaurantUserAccounts(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
RestApiArrayResultUserFlipdishAccount
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiArrayResultUserStoreInfo getRestaurantUserStores(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.getRestaurantUserStores(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
RestApiArrayResultUserStoreInfo
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiStringArrayResult getRoles()
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.UsersApi();
apiInstance.getRoles((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiResultUserRole getRolesAndUnassignedRoles(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.getRolesAndUnassignedRoles(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiResultUserInfo getUserById(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.getUserById(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiArrayResultUserDeliveryLocationAdmin getUserDeliveryLocationsForAdmin(userId, opts)
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.UsersApi();
let userId = 56; // Number |
let opts = {
'whiteLabelId': 56 // Number |
};
apiInstance.getUserDeliveryLocationsForAdmin(userId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| whiteLabelId | Number | [optional] |
RestApiArrayResultUserDeliveryLocationAdmin
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiArrayResultUserNote getUserNotes(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.getUserNotes(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiResultOrder getUserOrderByIdForAdmin(userId, orderId)
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.UsersApi();
let userId = 56; // Number |
let orderId = 56; // Number |
apiInstance.getUserOrderByIdForAdmin(userId, orderId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| orderId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data
RestApiArrayResultUserOrderSummary getUserOrdersForAdmin(userId, opts)
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.UsersApi();
let userId = 56; // Number |
let opts = {
'skip': 56, // Number |
'take': 56, // Number |
'brandId': "brandId_example" // String |
};
apiInstance.getUserOrdersForAdmin(userId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| skip | Number | [optional] | |
| take | Number | [optional] | |
| brandId | String | [optional] |
RestApiArrayResultUserOrderSummary
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiArrayResultUserSmsChatItem getUserSmsConversationItems(userId, opts)
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.UsersApi();
let userId = 56; // Number |
let opts = {
'mostRecentCount': 56 // Number |
};
apiInstance.getUserSmsConversationItems(userId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| mostRecentCount | Number | [optional] |
RestApiArrayResultUserSmsChatItem
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiDefaultResponse hideUserDeliveryLocation(userId, deliveryLocationId)
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.UsersApi();
let userId = 56; // Number |
let deliveryLocationId = 56; // Number |
apiInstance.hideUserDeliveryLocation(userId, deliveryLocationId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| deliveryLocationId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiDefaultResponse markUserAsFraudulent(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.markUserAsFraudulent(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse markUserAsSuspicious(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.markUserAsSuspicious(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse removeFlipdishAccountIdForUser(userId, accountId)
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.UsersApi();
let userId = 56; // Number |
let accountId = 56; // Number |
apiInstance.removeFlipdishAccountIdForUser(userId, accountId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| accountId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiResultUserRole removeUserFromRole(userId, roleName)
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.UsersApi();
let userId = 56; // Number |
let roleName = "roleName_example"; // String |
apiInstance.removeUserFromRole(userId, roleName, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| roleName | String |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse resetMfa(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.resetMfa(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiArrayResultFlipdishAccountName searchFlipdishAccounts(searchPattern)
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.UsersApi();
let searchPattern = "searchPattern_example"; // String |
apiInstance.searchFlipdishAccounts(searchPattern, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| searchPattern | String |
RestApiArrayResultFlipdishAccountName
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiPaginationResultUserSearch searchUsers(searchQuery, opts)
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.UsersApi();
let searchQuery = "searchQuery_example"; // String |
let opts = {
'hasUserLoggedIn': true, // Boolean |
'userDiscriminator': "userDiscriminator_example", // String |
'searchIn': "searchIn_example", // String |
'pageIndex': 56, // Number |
'pageSize': 56 // Number |
};
apiInstance.searchUsers(searchQuery, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| searchQuery | String | ||
| hasUserLoggedIn | Boolean | [optional] | |
| userDiscriminator | String | [optional] | |
| searchIn | String | [optional] | |
| pageIndex | Number | [optional] | |
| pageSize | Number | [optional] |
RestApiPaginationResultUserSearch
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiResultUserPushNotificationSentResult sendUserPushNotification(userId, request)
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.UsersApi();
let userId = 56; // Number |
let request = new Flipdish.SendUserPushNotificationRequest(); // SendUserPushNotificationRequest |
apiInstance.sendUserPushNotification(userId, request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| request | SendUserPushNotificationRequest |
RestApiResultUserPushNotificationSentResult
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiDefaultResponse sendUserSms(userId, request)
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.UsersApi();
let userId = 56; // Number |
let request = new Flipdish.SendUserSmsRequest(); // SendUserSmsRequest |
apiInstance.sendUserSms(userId, request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| request | SendUserSmsRequest |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiDefaultResponse setCustomerName(userId, customerName)
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.UsersApi();
let userId = 56; // Number |
let customerName = "customerName_example"; // String |
apiInstance.setCustomerName(userId, customerName, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| customerName | String |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse setFlipdishAccountIdForUser(userId, accountId)
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.UsersApi();
let userId = 56; // Number |
let accountId = 56; // Number |
apiInstance.setFlipdishAccountIdForUser(userId, accountId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| accountId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse setUserDeliveryLocationCoordinates(userId, deliveryLocationId, request)
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.UsersApi();
let userId = 56; // Number |
let deliveryLocationId = 56; // Number |
let request = new Flipdish.SetUserDeliveryLocationCoordinatesRequest(); // SetUserDeliveryLocationCoordinatesRequest |
apiInstance.setUserDeliveryLocationCoordinates(userId, deliveryLocationId, request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| deliveryLocationId | Number | ||
| request | SetUserDeliveryLocationCoordinatesRequest |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiDefaultResponse setUserDeliveryLocationField(userId, deliveryLocationId, request)
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.UsersApi();
let userId = 56; // Number |
let deliveryLocationId = 56; // Number |
let request = new Flipdish.SetUserDeliveryLocationFieldRequest(); // SetUserDeliveryLocationFieldRequest |
apiInstance.setUserDeliveryLocationField(userId, deliveryLocationId, request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| deliveryLocationId | Number | ||
| request | SetUserDeliveryLocationFieldRequest |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiDefaultResponse setUserLanguage(userId, languageId)
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.UsersApi();
let userId = 56; // Number |
let languageId = "languageId_example"; // String |
apiInstance.setUserLanguage(userId, languageId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number | ||
| languageId | String |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message
RestApiDefaultResponse unblockUserPhoneNumber(userId)
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.UsersApi();
let userId = 56; // Number |
apiInstance.unblockUserPhoneNumber(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message