1
0
Fork 0
mirror of https://github.com/matrix-org/gomatrix synced 2025-12-19 04:38:03 +00:00

Add Register() with req/resp structs

This commit is contained in:
Kegan Dougal 2016-12-02 16:51:20 +00:00
parent 3afeaf76cc
commit aee7c3f473
3 changed files with 73 additions and 4 deletions

11
requests.go Normal file
View file

@ -0,0 +1,11 @@
package gomatrix
// ReqRegister is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register
type ReqRegister struct {
Username string `json:"username,omitempty"`
BindEmail bool `json:"bind_email,omitempty"`
Password string `json:"password,omitempty"`
DeviceID string `json:"device_id,omitempty"`
InitialDeviceDisplayName string `json:"initial_device_display_name"`
Auth interface{} `json:"auth,omitempty"`
}