All URIs are relative to https://api.flipdish.co
Method | HTTP request | Description |
---|---|---|
getClient | GET /api/v1.0/clients/{clientId} | |
setSalesForceContactId | POST /api/v1.0/clients/{clientId}/salesforcecontactid | |
setStripeCustomerId | POST /api/v1.0/clients/{clientId}/stripecustomerid |
getClient(clientId)
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.ClientsApi();
let clientId = 56; // Number |
apiInstance.getClient(clientId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
clientId | Number |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
setSalesForceContactId(clientId, salesForceContactId)
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.ClientsApi();
let clientId = 56; // Number |
let salesForceContactId = "salesForceContactId_example"; // String |
apiInstance.setSalesForceContactId(clientId, salesForceContactId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
clientId | Number | ||
salesForceContactId | String |
null (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
setStripeCustomerId(clientId, stripeCustomerId)
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.ClientsApi();
let clientId = 56; // Number |
let stripeCustomerId = "stripeCustomerId_example"; // String |
apiInstance.setStripeCustomerId(clientId, stripeCustomerId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
clientId | Number | ||
stripeCustomerId | String |
null (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml