Trendsic Platform Service

<back to all web services

AgentListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/Agents
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class AgentListRequest implements IConvertible
{
    AgentListRequest();
    AgentListRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "AgentListRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'AgentListRequest': TypeInfo(TypeOf.Class, create:() => AgentListRequest()),
});

Dart AgentListRequest DTOs

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

HTTP + CSV

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

GET /v1/Agents HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[{"AgentId":0,"AgentName":"String","AgentStatus":"String","ContactCount":0,"UserName":"String","Email":"String","RolesCsv":"String"}]