Documentation ¶
Index ¶
- type APIUsersPatchCustomData
- type APIUsersPostReq
- type APIUsersPostRes
- type APIUsersSearchRes
- type AccessTokenResp
- type AdditionalUserInformation
- type Client
- func (clnt *Client) AccessToken(user, pass, resource string) (*AccessTokenResp, error)
- func (clnt *Client) AddCustomUserInformation(token, userId string, user *APIUsersPatchCustomData) error
- func (clnt *Client) CheckUser(token string, email string) (bool, string, error)
- func (clnt *Client) CheckUserWithUserName(token, username string) (bool, string, error)
- func (clnt *Client) CreateUser(token string, user *APIUsersPostReq) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIUsersPatchCustomData ¶
type APIUsersPatchCustomData struct {
CustomData AdditionalUserInformation `json:"customData"`
}
type APIUsersPostReq ¶
type APIUsersPostRes ¶
type APIUsersPostRes struct {
Id string `json:"id"`
}
type APIUsersSearchRes ¶
type AccessTokenResp ¶
type AdditionalUserInformation ¶
type AdditionalUserInformation struct { Profession string `json:"profession"` JobTitle string `json:"job_title"` Institution string `json:"institution"` Address string `json:"address"` SecondaryAddress string `json:"secondary_address"` City string `json:"city"` State string `json:"state"` Region string `json:"region"` Country string `json:"country"` Zipcode string `json:"zipcode"` Subscribed bool `json:"subscribed"` ResearchInterest string `json:"research_interest"` Phone string `json:"phone"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient creates a new instance of the Client struct. It takes an endpoint string as a parameter and returns a pointer to the Client struct.
func (*Client) AccessToken ¶
func (clnt *Client) AccessToken( user, pass, resource string, ) (*AccessTokenResp, error)
func (*Client) AddCustomUserInformation ¶
func (clnt *Client) AddCustomUserInformation( token, userId string, user *APIUsersPatchCustomData, ) error
func (*Client) CheckUserWithUserName ¶
func (*Client) CreateUser ¶
func (clnt *Client) CreateUser( token string, user *APIUsersPostReq, ) (string, error)
Click to show internal directories.
Click to hide internal directories.