Billhighway Cloud API

<back to all web services

GetUser

The following routes are available for this service:
GET/v1.1/users/get
GET/v1.2/users/get
import 'package:servicestack/servicestack.dart';

class UserInformation implements IConvertible
{
    String? BHSupportEmail;
    String? BHSupportPhone;
    String? BHIVRPhone;
    int? Id;
    String? FirstName;
    String? LastName;
    String? DisplayName;
    String? EmailAddress;
    String? AffiliationName;
    int? GroupId;
    String? GroupName;
    String? GroupNickname;
    int? ClientId;

    UserInformation({this.BHSupportEmail,this.BHSupportPhone,this.BHIVRPhone,this.Id,this.FirstName,this.LastName,this.DisplayName,this.EmailAddress,this.AffiliationName,this.GroupId,this.GroupName,this.GroupNickname,this.ClientId});
    UserInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        BHSupportEmail = json['BHSupportEmail'];
        BHSupportPhone = json['BHSupportPhone'];
        BHIVRPhone = json['BHIVRPhone'];
        Id = json['Id'];
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        DisplayName = json['DisplayName'];
        EmailAddress = json['EmailAddress'];
        AffiliationName = json['AffiliationName'];
        GroupId = json['GroupId'];
        GroupName = json['GroupName'];
        GroupNickname = json['GroupNickname'];
        ClientId = json['ClientId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'BHSupportEmail': BHSupportEmail,
        'BHSupportPhone': BHSupportPhone,
        'BHIVRPhone': BHIVRPhone,
        'Id': Id,
        'FirstName': FirstName,
        'LastName': LastName,
        'DisplayName': DisplayName,
        'EmailAddress': EmailAddress,
        'AffiliationName': AffiliationName,
        'GroupId': GroupId,
        'GroupName': GroupName,
        'GroupNickname': GroupNickname,
        'ClientId': ClientId
    };

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

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

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "GetUser";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
    'UserInformation': TypeInfo(TypeOf.Class, create:() => UserInformation()),
    'GetUser': TypeInfo(TypeOf.Class, create:() => GetUser()),
});

Dart GetUser DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1.1/users/get HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	BHSupportEmail: support@billhighway.com,
	BHSupportPhone: 866-245-5499,
	BHIVRPhone: 877-336-6007,
	Id: 0,
	FirstName: String,
	LastName: String,
	DisplayName: "String, String",
	EmailAddress: String,
	AffiliationName: String,
	GroupId: 0,
	GroupName: String,
	GroupNickname: String,
	ClientId: 0
}