ClubManager.Api

<back to all web services

ZapierEnquiryRequest

The following routes are available for this service:
POST/zapier/v1/enquiry
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class ZapierEnquiryResponse implements IConvertible
{
    String? MemberKey;

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

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

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

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

class ZapierEnquiryRequest implements IConvertible
{
    String? Forenames;
    String? Surname;
    String? EmailAddress;
    String? MobilePhone;
    String? Message;
    List<String>? Tags;

    ZapierEnquiryRequest({this.Forenames,this.Surname,this.EmailAddress,this.MobilePhone,this.Message,this.Tags});
    ZapierEnquiryRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Forenames = json['Forenames'];
        Surname = json['Surname'];
        EmailAddress = json['EmailAddress'];
        MobilePhone = json['MobilePhone'];
        Message = json['Message'];
        Tags = JsonConverters.fromJson(json['Tags'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Forenames': Forenames,
        'Surname': Surname,
        'EmailAddress': EmailAddress,
        'MobilePhone': MobilePhone,
        'Message': Message,
        'Tags': JsonConverters.toJson(Tags,'List<String>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: <String, TypeInfo> {
    'ZapierEnquiryResponse': TypeInfo(TypeOf.Class, create:() => ZapierEnquiryResponse()),
    'ZapierEnquiryRequest': TypeInfo(TypeOf.Class, create:() => ZapierEnquiryRequest()),
});

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

POST /zapier/v1/enquiry HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Forenames: String,
	Surname: String,
	EmailAddress: String,
	MobilePhone: String,
	Message: String,
	Tags: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	MemberKey: 00000000000000000000000000000000
}