Evo Voice

<back to all web services

ListAutoCompleteValues

Requires Authentication
The following routes are available for this service:
All Verbs/ui/autocomplete/values


export class NodeParameterMap
{
    [key:string] : NodeParameter;

    public constructor(init?: Partial<NodeParameterMap>) { (Object as any).assign(this, init); }
}


export class AutoCompleteValue
{
    /**
    * Display name
    */
    // @ApiMember(Description="Display name")
    public displayName?: string;

    /**
    * Value
    */
    // @ApiMember(Description="Value")
    public value?: string;

    public constructor(init?: Partial<AutoCompleteValue>) { (Object as any).assign(this, init); }
}

export class ListAutoCompleteValuesResponse
{
    public values?: AutoCompleteValue[];

    public constructor(init?: Partial<ListAutoCompleteValuesResponse>) { (Object as any).assign(this, init); }
}

export enum ValueTypes
{
    NotSpecified = 'NotSpecified',
    String = 'String',
    Boolean = 'Boolean',
    Number = 'Number',
    List = 'List',
    Struct = 'Struct',
    Transition = 'Transition',
    Custom = 'Custom',
    Date = 'Date',
    AudioFile = 'AudioFile',
    TimeZoneId = 'TimeZoneId',
    PhoneNumber = 'PhoneNumber',
    User = 'User',
    Endpoint = 'Endpoint',
    Time = 'Time',
    File = 'File',
    FaxNumber = 'FaxNumber',
    EmailAccount = 'EmailAccount',
    Customer = 'Customer',
    Flow = 'Flow',
    Team = 'Team',
    FlowReference = 'FlowReference',
    Integration = 'Integration',
}

export class ListAutoCompleteValues
{
    /**
    * Account ID
    */
    // @ApiMember(Description="Account ID")
    public accountId?: string;

    /**
    * Filter by customer ID
    */
    // @ApiMember(Description="Filter by customer ID")
    public customerId?: string;

    /**
    * The type of value
    */
    // @ApiMember(Description="The type of value")
    public type?: ValueTypes;

    /**
    * The query text to search for
    */
    // @ApiMember(Description="The query text to search for")
    public query?: string;

    /**
    * Type specific filter
    */
    // @ApiMember(Description="Type specific filter")
    public typeSpecificFilter?: string;

    /**
    * The value to search for (will only return one result)
    */
    // @ApiMember(Description="The value to search for (will only return one result)")
    public value?: string;

    /**
    * Should the results be sent back in plain text or with embedded HTML?
    */
    // @ApiMember(Description="Should the results be sent back in plain text or with embedded HTML?")
    public plainText?: boolean;

    /**
    * Include full info?
    */
    // @ApiMember(Description="Include full info?")
    public fullInfo?: boolean;

    /**
    * List all values, only use for small lists.
    */
    // @ApiMember(Description="List all values, only use for small lists.")
    public all?: boolean;

    public constructor(init?: Partial<ListAutoCompleteValues>) { (Object as any).assign(this, init); }
}

TypeScript ListAutoCompleteValues DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ui/autocomplete/values HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ListAutoCompleteValues xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.UI">
  <AccountId>String</AccountId>
  <All>false</All>
  <CustomerId>String</CustomerId>
  <FullInfo>false</FullInfo>
  <PlainText>false</PlainText>
  <Query>String</Query>
  <Type>NotSpecified</Type>
  <TypeSpecificFilter>String</TypeSpecificFilter>
  <Value>String</Value>
</ListAutoCompleteValues>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ListAutoCompleteValuesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.UI">
  <Values>
    <AutoCompleteValue>
      <DisplayName>String</DisplayName>
      <Value>String</Value>
    </AutoCompleteValue>
  </Values>
</ListAutoCompleteValuesResponse>