| Requires any of the roles: | Worker, Agent, Administrator |
| POST,OPTIONS | /v1/emailoauth/sync-inbound |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class EmailOAuthSyncInboundRequest
{
public Integer Days = null;
public Integer getDays() { return Days; }
public EmailOAuthSyncInboundRequest setDays(Integer value) { this.Days = value; return this; }
}
public static class EmailOAuthSyncResponse
{
public Integer Fetched = null;
public Integer Threaded = null;
public Integer Unmatched = null;
public ResponseStatus ResponseStatus = null;
public Integer getFetched() { return Fetched; }
public EmailOAuthSyncResponse setFetched(Integer value) { this.Fetched = value; return this; }
public Integer getThreaded() { return Threaded; }
public EmailOAuthSyncResponse setThreaded(Integer value) { this.Threaded = value; return this; }
public Integer getUnmatched() { return Unmatched; }
public EmailOAuthSyncResponse setUnmatched(Integer value) { this.Unmatched = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public EmailOAuthSyncResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java EmailOAuthSyncInboundRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/emailoauth/sync-inbound HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Days":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Fetched":0,"Threaded":0,"Unmatched":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}