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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<ListCrmCustomers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Integrations">
<IntegrationId>String</IntegrationId>
<Query>String</Query>
</ListCrmCustomers>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ListCrmCustomersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Integrations"> <Customers> <CrmCustomerInfo> <DisplayName>String</DisplayName> <Id>String</Id> </CrmCustomerInfo> </Customers> </ListCrmCustomersResponse>