Evo Voice

<back to all web services

GetUniqueEndpointValue

Get a unique number string value for an endpoint field

Requires Authentication
The following routes are available for this service:
GET/values/endpoint/unique
import 'package:servicestack/servicestack.dart';

class GetUniqueEndpointValueResponse implements IConvertible
{
    String? value;

    GetUniqueEndpointValueResponse({this.value});
    GetUniqueEndpointValueResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        value = json['value'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'value': value
    };

    getTypeName() => "GetUniqueEndpointValueResponse";
    TypeContext? context = _ctx;
}

/**
* Get a unique number string value for an endpoint field
*/
// @Api(Description="Get a unique number string value for an endpoint field")
class GetUniqueEndpointValue implements IConvertible
{
    /**
    * The account ID you are interested in
    */
    // @ApiMember(Description="The account ID you are interested in")
    String? accountId;

    /**
    * The endpoint field you want a unique value for
    */
    // @ApiMember(Description="The endpoint field you want a unique value for")
    String? fieldName;

    /**
    * The prefix to use for the value
    */
    // @ApiMember(Description="The prefix to use for the value")
    String? prefix;

    /**
    * The length of the value
    */
    // @ApiMember(Description="The length of the value")
    int? length;

    GetUniqueEndpointValue({this.accountId,this.fieldName,this.prefix,this.length});
    GetUniqueEndpointValue.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        accountId = json['accountId'];
        fieldName = json['fieldName'];
        prefix = json['prefix'];
        length = json['length'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'accountId': accountId,
        'fieldName': fieldName,
        'prefix': prefix,
        'length': length
    };

    getTypeName() => "GetUniqueEndpointValue";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'evovoice.io', types: <String, TypeInfo> {
    'GetUniqueEndpointValueResponse': TypeInfo(TypeOf.Class, create:() => GetUniqueEndpointValueResponse()),
    'GetUniqueEndpointValue': TypeInfo(TypeOf.Class, create:() => GetUniqueEndpointValue()),
});

Dart GetUniqueEndpointValue DTOs

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

HTTP + JSV

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

GET /values/endpoint/unique HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	value: String
}