ConsumerApi

<back to all web services

GetRefreshTokenRequest

ConsumerBusinessBackoffice
Requires Authentication
The following routes are available for this service:
POST/login/get_refresh_token

library ConsumerApi;
import 'package:servicestack/servicestack.dart';

class GetRefreshTokenResponse implements IConvertible
{
    String? refreshToken;

    GetRefreshTokenResponse({this.refreshToken});
    GetRefreshTokenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class GetRefreshTokenRequest implements IPost, IConvertible
{
    GetRefreshTokenRequest();
    GetRefreshTokenRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetRefreshTokenRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: <String, TypeInfo> {
    'GetRefreshTokenResponse': TypeInfo(TypeOf.Class, create:() => GetRefreshTokenResponse()),
    'GetRefreshTokenRequest': TypeInfo(TypeOf.Class, create:() => GetRefreshTokenRequest()),
});

Dart GetRefreshTokenRequest 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.

POST /login/get_refresh_token HTTP/1.1 
Host: unstable-consumer-api.brovs.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"refreshToken":"String"}