All Verbs | /integrations/{integrationId}/customers |
---|
"use strict";
export class CrmCustomerInfo {
/** @param {{id?:string,displayName?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
/** @type {string} */
displayName;
}
export class ListCrmCustomersResponse {
/** @param {{customers?:CrmCustomerInfo[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {CrmCustomerInfo[]} */
customers;
}
export class ListCrmCustomers {
/** @param {{integrationId?:string,query?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
integrationId;
/** @type {string} */
query;
}
JavaScript ListCrmCustomers DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /integrations/{integrationId}/customers HTTP/1.1
Host: team.evovoice.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"integrationId":"String","query":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"customers":[{"id":"String","displayName":"String"}]}