| GET | /{WorkspaceId}/OAuthInfo |
|---|
import 'package:servicestack/servicestack.dart';
/**
* Represents and item that provides info required to provision an integration object
*/
class OAuthInfo implements IConvertible
{
String? WorkspaceId;
String? OAuthUrl;
String? App;
String? ApiKey;
String? ApiSecret;
bool? IsTestEnv;
OAuthInfo({this.WorkspaceId,this.OAuthUrl,this.App,this.ApiKey,this.ApiSecret,this.IsTestEnv});
OAuthInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
WorkspaceId = json['WorkspaceId'];
OAuthUrl = json['OAuthUrl'];
App = json['App'];
ApiKey = json['ApiKey'];
ApiSecret = json['ApiSecret'];
IsTestEnv = json['IsTestEnv'];
return this;
}
Map<String, dynamic> toJson() => {
'WorkspaceId': WorkspaceId,
'OAuthUrl': OAuthUrl,
'App': App,
'ApiKey': ApiKey,
'ApiSecret': ApiSecret,
'IsTestEnv': IsTestEnv
};
getTypeName() => "OAuthInfo";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'OAuthInfo': TypeInfo(TypeOf.Class, create:() => OAuthInfo()),
});
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