ClubManager.Api

<back to all web services

SecurityService.GetUserByBranchForAppRequest

Requires Authentication
The following routes are available for this service:
POST,GET/api/Security/GetUserByBranchForApp
import Foundation
import ServiceStack

public class User : Codable
{
    public var userId:Int?
    public var userName:String?
    public var name:String?
    public var email:String?
    public var emailConfirmed:Bool?
    public var mobilePhone:String?
    public var mobilePhoneConfirmed:Bool?
    public var confirmPassword:String?
    public var password:String?
    public var passwordSalt:String?
    public var enabled:Bool?
    public var training:Bool?
    public var lastLogin:Date?
    public var created:Date?
    public var branchId:Int?
    public var parentBranchId:Int?
    public var memberId:Int?
    public var roles:[String] = []
    public var coursesCompleted:TrainingCourse?
    public var displayHomeNotification:Bool?
    public var twoFactorEnabled:Bool?
    public var branchName:String?
    public var branchKey:String?
    public var notifications:Bool?
    public var publishableKey:String?
    public var secretKey:String?
    public var appRegistrationId:String?
    public var appRegistrationLink:String?
    public var appQrImageLink:String?
    public var changePassword:Date?
    public var activated:Date?

    required public init(){}
}

// @Flags()
public enum TrainingCourse : Int, Codable
{
    case AddMember = 1
    case EditMember = 2
    case AddMembership = 4
    case Journal = 8
    case Home = 16
    case Till = 32
    case Accounting = 64
    case UnexplainedPayments = 128
    case Bookings = 256
    case Users = 512
}


Swift SecurityService.GetUserByBranchForAppRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /api/Security/GetUserByBranchForApp HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"AppUserId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"UserId":0,"UserName":"String","Name":"String","Email":"String","EmailConfirmed":false,"MobilePhone":"String","MobilePhoneConfirmed":false,"ConfirmPassword":"String","Password":"String","PasswordSalt":"String","Enabled":false,"Training":false,"LastLogin":"0001-01-01T00:00:00.0000000","Created":"0001-01-01T00:00:00.0000000","BranchId":0,"ParentBranchId":0,"MemberId":0,"Roles":["String"],"CoursesCompleted":1,"DisplayHomeNotification":false,"TwoFactorEnabled":false,"BranchName":"String","BranchKey":"00000000000000000000000000000000","Notifications":false,"PublishableKey":"String","SecretKey":"String","AppRegistrationId":"7TvtgFvdvABkciG+5MdrKWdOb3jcmCvVCNGhKIjNTe9jr4RPVK2J+4Vbg1pZ07GHBWm6zWbS112uXGtPjqzEdWLRXuA61k56EkL0dERZAjg=","AppRegistrationLink":"https://secure.clubmanagercentral.com/Register?id=7TvtgFvdvABkciG+5MdrKWdOb3jcmCvVCNGhKIjNTe9jr4RPVK2J+4Vbg1pZ07GHBWm6zWbS112uXGtPjqzEdWLRXuA61k56EkL0dERZAjg=","AppQrImageLink":"https://secure.clubmanagercentral.com/User.mvc/GetQrByUserId?id=36xZln01EfE80ZF7GFWKkg==","ChangePassword":"0001-01-01T00:00:00.0000000","Activated":"0001-01-01T00:00:00.0000000"}