| GET | /{WorkspaceId}/OAuthInfo |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
/**
* Represents and item that provides info required to provision an integration object
*/
public static class OAuthInfo
{
public String WorkspaceId = null;
public String OAuthUrl = null;
public String App = null;
public String ApiKey = null;
public String ApiSecret = null;
public Boolean IsTestEnv = null;
public String getWorkspaceId() { return WorkspaceId; }
public OAuthInfo setWorkspaceId(String value) { this.WorkspaceId = value; return this; }
public String getOAuthUrl() { return OAuthUrl; }
public OAuthInfo setOAuthUrl(String value) { this.OAuthUrl = value; return this; }
public String getApp() { return App; }
public OAuthInfo setApp(String value) { this.App = value; return this; }
public String getApiKey() { return ApiKey; }
public OAuthInfo setApiKey(String value) { this.ApiKey = value; return this; }
public String getApiSecret() { return ApiSecret; }
public OAuthInfo setApiSecret(String value) { this.ApiSecret = value; return this; }
public Boolean getIsTestEnv() { return IsTestEnv; }
public OAuthInfo setIsTestEnv(Boolean value) { this.IsTestEnv = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{WorkspaceId}/OAuthInfo HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml