Field Squared API Services

<back to all web services

OAuthRevoke

Represents an item that revokes an integration OAuth token

The following routes are available for this service:
GET/{WorkspaceId}/OAuthRevoke/{App}
import 'package:servicestack/servicestack.dart';

/**
* Represents an item that revokes an integration OAuth token
*/
class OAuthRevoke implements IConvertible
{
    String? WorkspaceId;
    String? App;

    OAuthRevoke({this.WorkspaceId,this.App});
    OAuthRevoke.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        WorkspaceId = json['WorkspaceId'];
        App = json['App'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'WorkspaceId': WorkspaceId,
        'App': App
    };

    getTypeName() => "OAuthRevoke";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
    'OAuthRevoke': TypeInfo(TypeOf.Class, create:() => OAuthRevoke()),
});

Dart OAuthRevoke 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 /{WorkspaceId}/OAuthRevoke/{App} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv