Evo Voice

<back to all web services

SyncIntegration

The following routes are available for this service:
POST/integrations/{integrationId}/sync
import 'package:servicestack/servicestack.dart';

class SyncIntegrationResult implements IConvertible
{
    String? log;

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

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

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

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

class SyncIntegration implements IConvertible
{
    String? integrationId;

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

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

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

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

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

Dart SyncIntegration 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.

POST /integrations/{integrationId}/sync HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	integrationId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	log: String
}