Trendsic Platform Service

<back to all web services

ContactShareRequestExtended

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET/v1/ContactShareExtended/{ContactId}
"use strict";
export class ContactShareExtended {
    /** @param {{ContactShareId?:number,ContactId?:number,AgentId?:number,FirstName?:string,LastName?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ContactShareId;
    /** @type {number} */
    ContactId;
    /** @type {number} */
    AgentId;
    /** @type {string} */
    FirstName;
    /** @type {string} */
    LastName;
}
export class ContactShareResponseExtended {
    /** @param {{ResponseStatus?:ResponseStatus,ContactShareExtended?:ContactShareExtended[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {ContactShareExtended[]} */
    ContactShareExtended = [];
}
export class ContactShareRequestExtended {
    /** @param {{ContactId?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ContactId;
}

JavaScript ContactShareRequestExtended DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/ContactShareExtended/{ContactId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ContactShareExtended":[{"ContactShareId":0,"ContactId":0,"AgentId":0,"FirstName":"String","LastName":"String"}]}