Documentation ¶
Index ¶
- func BuildChangePasswordPayload(passwordAuthChangePasswordBody string, ...) (*passwordauth.ChangePasswordParams, error)
- func BuildCheckEmailAvailablePayload(passwordAuthCheckEmailAvailableEmail string, ...) (*passwordauth.CheckEmailAvailablePayload, error)
- func BuildCheckPhoneAvailablePayload(passwordAuthCheckPhoneAvailablePhone string, ...) (*passwordauth.CheckPhoneAvailablePayload, error)
- func BuildCheckUsernameAvailablePayload(passwordAuthCheckUsernameAvailableUsername string, ...) (*passwordauth.CheckUsernameAvailablePayload, error)
- func BuildConfirmResetPayload(passwordAuthConfirmResetBody string, passwordAuthConfirmResetAPIKey string) (*passwordauth.ResetPasswordParams, error)
- func BuildLoginPayload(passwordAuthLoginBody string, passwordAuthLoginToken string, ...) (*passwordauth.LoginParams, error)
- func BuildRegisterPayload(passwordAuthRegisterBody string, passwordAuthRegisterAuthorization string, ...) (*passwordauth.RegisterParams, error)
- func BuildRemovePayload(passwordAuthRemoveAuthorization string, passwordAuthRemoveXSession string, ...) (*passwordauth.RemovePayload, error)
- func BuildResetPayload(passwordAuthResetEmail string, passwordAuthResetRedirectURL string, ...) (*passwordauth.ResetPayload, error)
- func ChangePasswordPasswordAuthPath() string
- func CheckEmailAvailablePasswordAuthPath() string
- func CheckPhoneAvailablePasswordAuthPath() string
- func CheckUsernameAvailablePasswordAuthPath() string
- func ConfirmResetPasswordAuthPath() string
- func DecodeChangePasswordResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeCheckEmailAvailableResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeCheckPhoneAvailableResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeCheckUsernameAvailableResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeConfirmResetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeLoginResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeRegisterResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeRemoveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeResetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func EncodeChangePasswordRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeCheckEmailAvailableRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeCheckPhoneAvailableRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeCheckUsernameAvailableRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeConfirmResetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeLoginRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeRegisterRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeRemoveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeResetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func LoginPasswordAuthPath() string
- func NewLoginUserMediaOK(body *LoginResponseBody, authorization string, xSession string) *passwordauthviews.UserMediaView
- func NewRegisterUserMediaOK(body *RegisterResponseBody, authorization string, xSession string) *passwordauthviews.UserMediaView
- func RegisterPasswordAuthPath() string
- func RemovePasswordAuthPath() string
- func ResetPasswordAuthPath() string
- type AggCampaignMediaResponseBody
- type AggInstagramMediaResponseBody
- type AggSocialMediaResponseBody
- type ChangePasswordRequestBody
- type Client
- func (c *Client) BuildChangePasswordRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildCheckEmailAvailableRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildCheckPhoneAvailableRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildCheckUsernameAvailableRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildConfirmResetRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildLoginRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildRegisterRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildRemoveRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildResetRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) ChangePassword() goa.Endpoint
- func (c *Client) CheckEmailAvailable() goa.Endpoint
- func (c *Client) CheckPhoneAvailable() goa.Endpoint
- func (c *Client) CheckUsernameAvailable() goa.Endpoint
- func (c *Client) ConfirmReset() goa.Endpoint
- func (c *Client) Login() goa.Endpoint
- func (c *Client) Register() goa.Endpoint
- func (c *Client) Remove() goa.Endpoint
- func (c *Client) Reset() goa.Endpoint
- type ConfirmResetRequestBody
- type LoginRequestBody
- type LoginResponseBody
- type RegisterRequestBody
- type RegisterResponseBody
- type SelectedPlanMediaResponseBody
- type UserLocationMediaResponseBody
- type UserOnboardedMediaResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildChangePasswordPayload ¶
func BuildChangePasswordPayload(passwordAuthChangePasswordBody string, passwordAuthChangePasswordAuthorization string, passwordAuthChangePasswordXSession string, passwordAuthChangePasswordAPIKey string) (*passwordauth.ChangePasswordParams, error)
BuildChangePasswordPayload builds the payload for the password-auth change-password endpoint from CLI flags.
func BuildCheckEmailAvailablePayload ¶
func BuildCheckEmailAvailablePayload(passwordAuthCheckEmailAvailableEmail string, passwordAuthCheckEmailAvailableAPIKey string) (*passwordauth.CheckEmailAvailablePayload, error)
BuildCheckEmailAvailablePayload builds the payload for the password-auth check-email-available endpoint from CLI flags.
func BuildCheckPhoneAvailablePayload ¶
func BuildCheckPhoneAvailablePayload(passwordAuthCheckPhoneAvailablePhone string, passwordAuthCheckPhoneAvailableAPIKey string) (*passwordauth.CheckPhoneAvailablePayload, error)
BuildCheckPhoneAvailablePayload builds the payload for the password-auth check-phone-available endpoint from CLI flags.
func BuildCheckUsernameAvailablePayload ¶
func BuildCheckUsernameAvailablePayload(passwordAuthCheckUsernameAvailableUsername string, passwordAuthCheckUsernameAvailableAPIKey string) (*passwordauth.CheckUsernameAvailablePayload, error)
BuildCheckUsernameAvailablePayload builds the payload for the password-auth check-username-available endpoint from CLI flags.
func BuildConfirmResetPayload ¶
func BuildConfirmResetPayload(passwordAuthConfirmResetBody string, passwordAuthConfirmResetAPIKey string) (*passwordauth.ResetPasswordParams, error)
BuildConfirmResetPayload builds the payload for the password-auth confirm-reset endpoint from CLI flags.
func BuildLoginPayload ¶
func BuildLoginPayload(passwordAuthLoginBody string, passwordAuthLoginToken string, passwordAuthLoginAPIKey string) (*passwordauth.LoginParams, error)
BuildLoginPayload builds the payload for the password-auth login endpoint from CLI flags.
func BuildRegisterPayload ¶
func BuildRegisterPayload(passwordAuthRegisterBody string, passwordAuthRegisterAuthorization string, passwordAuthRegisterXSession string, passwordAuthRegisterAPIKey string) (*passwordauth.RegisterParams, error)
BuildRegisterPayload builds the payload for the password-auth register endpoint from CLI flags.
func BuildRemovePayload ¶
func BuildRemovePayload(passwordAuthRemoveAuthorization string, passwordAuthRemoveXSession string, passwordAuthRemoveAPIKey string) (*passwordauth.RemovePayload, error)
BuildRemovePayload builds the payload for the password-auth remove endpoint from CLI flags.
func BuildResetPayload ¶
func BuildResetPayload(passwordAuthResetEmail string, passwordAuthResetRedirectURL string, passwordAuthResetAPIKey string) (*passwordauth.ResetPayload, error)
BuildResetPayload builds the payload for the password-auth reset endpoint from CLI flags.
func ChangePasswordPasswordAuthPath ¶
func ChangePasswordPasswordAuthPath() string
ChangePasswordPasswordAuthPath returns the URL path to the password-auth service change-password HTTP endpoint.
func CheckEmailAvailablePasswordAuthPath ¶
func CheckEmailAvailablePasswordAuthPath() string
CheckEmailAvailablePasswordAuthPath returns the URL path to the password-auth service check-email-available HTTP endpoint.
func CheckPhoneAvailablePasswordAuthPath ¶
func CheckPhoneAvailablePasswordAuthPath() string
CheckPhoneAvailablePasswordAuthPath returns the URL path to the password-auth service check-phone-available HTTP endpoint.
func CheckUsernameAvailablePasswordAuthPath ¶
func CheckUsernameAvailablePasswordAuthPath() string
CheckUsernameAvailablePasswordAuthPath returns the URL path to the password-auth service check-username-available HTTP endpoint.
func ConfirmResetPasswordAuthPath ¶
func ConfirmResetPasswordAuthPath() string
ConfirmResetPasswordAuthPath returns the URL path to the password-auth service confirm-reset HTTP endpoint.
func DecodeChangePasswordResponse ¶
func DecodeChangePasswordResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeChangePasswordResponse returns a decoder for responses returned by the password-auth change-password endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeCheckEmailAvailableResponse ¶
func DecodeCheckEmailAvailableResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeCheckEmailAvailableResponse returns a decoder for responses returned by the password-auth check-email-available endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeCheckPhoneAvailableResponse ¶
func DecodeCheckPhoneAvailableResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeCheckPhoneAvailableResponse returns a decoder for responses returned by the password-auth check-phone-available endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeCheckUsernameAvailableResponse ¶
func DecodeCheckUsernameAvailableResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeCheckUsernameAvailableResponse returns a decoder for responses returned by the password-auth check-username-available endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeConfirmResetResponse ¶
func DecodeConfirmResetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeConfirmResetResponse returns a decoder for responses returned by the password-auth confirm-reset endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeLoginResponse ¶
func DecodeLoginResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeLoginResponse returns a decoder for responses returned by the password-auth login endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeRegisterResponse ¶
func DecodeRegisterResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeRegisterResponse returns a decoder for responses returned by the password-auth register endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeRemoveResponse ¶
func DecodeRemoveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeRemoveResponse returns a decoder for responses returned by the password-auth remove endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeResetResponse ¶
func DecodeResetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeResetResponse returns a decoder for responses returned by the password-auth reset endpoint. restoreBody controls whether the response body should be restored after having been read.
func EncodeChangePasswordRequest ¶
func EncodeChangePasswordRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeChangePasswordRequest returns an encoder for requests sent to the password-auth change-password server.
func EncodeCheckEmailAvailableRequest ¶
func EncodeCheckEmailAvailableRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeCheckEmailAvailableRequest returns an encoder for requests sent to the password-auth check-email-available server.
func EncodeCheckPhoneAvailableRequest ¶
func EncodeCheckPhoneAvailableRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeCheckPhoneAvailableRequest returns an encoder for requests sent to the password-auth check-phone-available server.
func EncodeCheckUsernameAvailableRequest ¶
func EncodeCheckUsernameAvailableRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeCheckUsernameAvailableRequest returns an encoder for requests sent to the password-auth check-username-available server.
func EncodeConfirmResetRequest ¶
func EncodeConfirmResetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeConfirmResetRequest returns an encoder for requests sent to the password-auth confirm-reset server.
func EncodeLoginRequest ¶
func EncodeLoginRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeLoginRequest returns an encoder for requests sent to the password-auth login server.
func EncodeRegisterRequest ¶
func EncodeRegisterRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeRegisterRequest returns an encoder for requests sent to the password-auth register server.
func EncodeRemoveRequest ¶
func EncodeRemoveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeRemoveRequest returns an encoder for requests sent to the password-auth remove server.
func EncodeResetRequest ¶
func EncodeResetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeResetRequest returns an encoder for requests sent to the password-auth reset server.
func LoginPasswordAuthPath ¶
func LoginPasswordAuthPath() string
LoginPasswordAuthPath returns the URL path to the password-auth service login HTTP endpoint.
func NewLoginUserMediaOK ¶
func NewLoginUserMediaOK(body *LoginResponseBody, authorization string, xSession string) *passwordauthviews.UserMediaView
NewLoginUserMediaOK builds a "password-auth" service "login" endpoint result from a HTTP "OK" response.
func NewRegisterUserMediaOK ¶
func NewRegisterUserMediaOK(body *RegisterResponseBody, authorization string, xSession string) *passwordauthviews.UserMediaView
NewRegisterUserMediaOK builds a "password-auth" service "register" endpoint result from a HTTP "OK" response.
func RegisterPasswordAuthPath ¶
func RegisterPasswordAuthPath() string
RegisterPasswordAuthPath returns the URL path to the password-auth service register HTTP endpoint.
func RemovePasswordAuthPath ¶
func RemovePasswordAuthPath() string
RemovePasswordAuthPath returns the URL path to the password-auth service remove HTTP endpoint.
func ResetPasswordAuthPath ¶
func ResetPasswordAuthPath() string
ResetPasswordAuthPath returns the URL path to the password-auth service reset HTTP endpoint.
Types ¶
type AggCampaignMediaResponseBody ¶
type AggCampaignMediaResponseBody struct { Rejected []interface{} `form:"rejected,omitempty" json:"rejected,omitempty" xml:"rejected,omitempty"` Invited []interface{} `form:"invited,omitempty" json:"invited,omitempty" xml:"invited,omitempty"` Applied []interface{} `form:"applied,omitempty" json:"applied,omitempty" xml:"applied,omitempty"` Shortlisted []interface{} `form:"shortlisted,omitempty" json:"shortlisted,omitempty" xml:"shortlisted,omitempty"` Selected []interface{} `form:"selected,omitempty" json:"selected,omitempty" xml:"selected,omitempty"` Previous []interface{} `form:"previous,omitempty" json:"previous,omitempty" xml:"previous,omitempty"` }
AggCampaignMediaResponseBody is used to define fields on response body types.
type AggInstagramMediaResponseBody ¶
type AggInstagramMediaResponseBody struct { Website *string `form:"website,omitempty" json:"website,omitempty" xml:"website,omitempty"` SelectedPlan *SelectedPlanMediaResponseBody `form:"selectedPlan,omitempty" json:"selectedPlan,omitempty" xml:"selectedPlan,omitempty"` Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"` ProfilePicture *string `form:"profilePicture,omitempty" json:"profilePicture,omitempty" xml:"profilePicture,omitempty"` Bio *string `form:"bio,omitempty" json:"bio,omitempty" xml:"bio,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` IsBusiness *bool `form:"isBusiness,omitempty" json:"isBusiness,omitempty" xml:"isBusiness,omitempty"` FullName *string `form:"fullName,omitempty" json:"fullName,omitempty" xml:"fullName,omitempty"` }
AggInstagramMediaResponseBody is used to define fields on response body types.
type AggSocialMediaResponseBody ¶
type AggSocialMediaResponseBody struct {
Instagram *AggInstagramMediaResponseBody `form:"instagram,omitempty" json:"instagram,omitempty" xml:"instagram,omitempty"`
}
AggSocialMediaResponseBody is used to define fields on response body types.
type ChangePasswordRequestBody ¶
type ChangePasswordRequestBody struct { // The old password for the current user account OldPassword string `form:"oldPassword" json:"oldPassword" xml:"oldPassword"` // The new password for the current user account NewPassword string `form:"newPassword" json:"newPassword" xml:"newPassword"` }
ChangePasswordRequestBody is the type of the "password-auth" service "change-password" endpoint HTTP request body.
func NewChangePasswordRequestBody ¶
func NewChangePasswordRequestBody(p *passwordauth.ChangePasswordParams) *ChangePasswordRequestBody
NewChangePasswordRequestBody builds the HTTP request body from the payload of the "change-password" endpoint of the "password-auth" service.
type Client ¶
type Client struct { // Register Doer is the HTTP client used to make requests to the register // endpoint. RegisterDoer goahttp.Doer // Login Doer is the HTTP client used to make requests to the login endpoint. LoginDoer goahttp.Doer // Remove Doer is the HTTP client used to make requests to the remove endpoint. RemoveDoer goahttp.Doer // ChangePassword Doer is the HTTP client used to make requests to the // change-password endpoint. ChangePasswordDoer goahttp.Doer // Reset Doer is the HTTP client used to make requests to the reset endpoint. ResetDoer goahttp.Doer // ConfirmReset Doer is the HTTP client used to make requests to the // confirm-reset endpoint. ConfirmResetDoer goahttp.Doer // CheckEmailAvailable Doer is the HTTP client used to make requests to the // check-email-available endpoint. CheckEmailAvailableDoer goahttp.Doer // CheckUsernameAvailable Doer is the HTTP client used to make requests to the // check-username-available endpoint. CheckUsernameAvailableDoer goahttp.Doer // CheckPhoneAvailable Doer is the HTTP client used to make requests to the // check-phone-available endpoint. CheckPhoneAvailableDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the password-auth service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the password-auth service servers.
func (*Client) BuildChangePasswordRequest ¶
func (c *Client) BuildChangePasswordRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildChangePasswordRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "change-password" endpoint
func (*Client) BuildCheckEmailAvailableRequest ¶
func (c *Client) BuildCheckEmailAvailableRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildCheckEmailAvailableRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "check-email-available" endpoint
func (*Client) BuildCheckPhoneAvailableRequest ¶
func (c *Client) BuildCheckPhoneAvailableRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildCheckPhoneAvailableRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "check-phone-available" endpoint
func (*Client) BuildCheckUsernameAvailableRequest ¶
func (c *Client) BuildCheckUsernameAvailableRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildCheckUsernameAvailableRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "check-username-available" endpoint
func (*Client) BuildConfirmResetRequest ¶
func (c *Client) BuildConfirmResetRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildConfirmResetRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "confirm-reset" endpoint
func (*Client) BuildLoginRequest ¶
BuildLoginRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "login" endpoint
func (*Client) BuildRegisterRequest ¶
BuildRegisterRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "register" endpoint
func (*Client) BuildRemoveRequest ¶
BuildRemoveRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "remove" endpoint
func (*Client) BuildResetRequest ¶
BuildResetRequest instantiates a HTTP request object with method and path set to call the "password-auth" service "reset" endpoint
func (*Client) ChangePassword ¶
ChangePassword returns an endpoint that makes HTTP requests to the password-auth service change-password server.
func (*Client) CheckEmailAvailable ¶
CheckEmailAvailable returns an endpoint that makes HTTP requests to the password-auth service check-email-available server.
func (*Client) CheckPhoneAvailable ¶
CheckPhoneAvailable returns an endpoint that makes HTTP requests to the password-auth service check-phone-available server.
func (*Client) CheckUsernameAvailable ¶
CheckUsernameAvailable returns an endpoint that makes HTTP requests to the password-auth service check-username-available server.
func (*Client) ConfirmReset ¶
ConfirmReset returns an endpoint that makes HTTP requests to the password-auth service confirm-reset server.
func (*Client) Login ¶
Login returns an endpoint that makes HTTP requests to the password-auth service login server.
func (*Client) Register ¶
Register returns an endpoint that makes HTTP requests to the password-auth service register server.
type ConfirmResetRequestBody ¶
type ConfirmResetRequestBody struct { // The UUID of the password reset, send from the user's email ResetCode string `form:"resetCode" json:"resetCode" xml:"resetCode"` // The ID of the user to reset the password of UserID string `form:"userID" json:"userID" xml:"userID"` // The new password that will be used to login to the account NewPassword string `form:"newPassword" json:"newPassword" xml:"newPassword"` }
ConfirmResetRequestBody is the type of the "password-auth" service "confirm-reset" endpoint HTTP request body.
func NewConfirmResetRequestBody ¶
func NewConfirmResetRequestBody(p *passwordauth.ResetPasswordParams) *ConfirmResetRequestBody
NewConfirmResetRequestBody builds the HTTP request body from the payload of the "confirm-reset" endpoint of the "password-auth" service.
type LoginRequestBody ¶
type LoginRequestBody struct { // The email address of the account to login to Email string `form:"email" json:"email" xml:"email"` // The password of the account to login to Password string `form:"password" json:"password" xml:"password"` // 2 Factor Auth if user has enabled the feature TwoFactor *string `form:"TwoFactor,omitempty" json:"TwoFactor,omitempty" xml:"TwoFactor,omitempty"` }
LoginRequestBody is the type of the "password-auth" service "login" endpoint HTTP request body.
func NewLoginRequestBody ¶
func NewLoginRequestBody(p *passwordauth.LoginParams) *LoginRequestBody
NewLoginRequestBody builds the HTTP request body from the payload of the "login" endpoint of the "password-auth" service.
type LoginResponseBody ¶
type LoginResponseBody struct { // Unique unchanging user ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Given name for the user FirstName *string `form:"firstName,omitempty" json:"firstName,omitempty" xml:"firstName,omitempty"` // Family name for the user LastName *string `form:"lastName,omitempty" json:"lastName,omitempty" xml:"lastName,omitempty"` // Email attached to the account of the user Email *string `form:"email,omitempty" json:"email,omitempty" xml:"email,omitempty"` // Phone Number Of the user Phone *string `form:"phone,omitempty" json:"phone,omitempty" xml:"phone,omitempty"` // Category of the user generated by our algorithms Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"` // Phone Number Of the user Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"` // When the user attempts to change their email, this is what they will change // it to after they verify that it belongs to them ChangingEmail *string `form:"changingEmail,omitempty" json:"changingEmail,omitempty" xml:"changingEmail,omitempty"` Genres []string `form:"genres,omitempty" json:"genres,omitempty" xml:"genres,omitempty"` // Whether the user has verified their email VerifiedEmail *bool `form:"verifiedEmail,omitempty" json:"verifiedEmail,omitempty" xml:"verifiedEmail,omitempty"` // Whether the user is an administrator on the site IsAdmin *bool `form:"isAdmin,omitempty" json:"isAdmin,omitempty" xml:"isAdmin,omitempty"` // Whether the user is a brand manager on the site IsBrandManager *bool `form:"isBrandManager,omitempty" json:"isBrandManager,omitempty" xml:"isBrandManager,omitempty"` UID *string `form:"uid,omitempty" json:"uid,omitempty" xml:"uid,omitempty"` UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` IsActive *bool `form:"isActive,omitempty" json:"isActive,omitempty" xml:"isActive,omitempty"` AggCampaigns *AggCampaignMediaResponseBody `form:"aggCampaigns,omitempty" json:"aggCampaigns,omitempty" xml:"aggCampaigns,omitempty"` Gender *string `form:"gender,omitempty" json:"gender,omitempty" xml:"gender,omitempty"` Onboarded *UserOnboardedMediaResponseBody `form:"onboarded,omitempty" json:"onboarded,omitempty" xml:"onboarded,omitempty"` Location *UserLocationMediaResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` Dob *string `form:"dob,omitempty" json:"dob,omitempty" xml:"dob,omitempty"` CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` AggSocial *AggSocialMediaResponseBody `form:"aggSocial,omitempty" json:"aggSocial,omitempty" xml:"aggSocial,omitempty"` SocialMediaRawData interface{} `form:"socialMediaRawData,omitempty" json:"socialMediaRawData,omitempty" xml:"socialMediaRawData,omitempty"` }
LoginResponseBody is the type of the "password-auth" service "login" endpoint HTTP response body.
type RegisterRequestBody ¶
type RegisterRequestBody struct { // The email that will be attached to the account Email string `form:"email" json:"email" xml:"email"` // The user's given name FirstName string `form:"firstName" json:"firstName" xml:"firstName"` // The user's family name LastName string `form:"lastName" json:"lastName" xml:"lastName"` // The password associated with the new account Password string `form:"password" json:"password" xml:"password"` // The username chosen by this user Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"` // The user's phone number Phone *string `form:"phone,omitempty" json:"phone,omitempty" xml:"phone,omitempty"` // The recaptcha response code GRecaptchaResponse string `form:"gRecaptchaResponse" json:"gRecaptchaResponse" xml:"gRecaptchaResponse"` }
RegisterRequestBody is the type of the "password-auth" service "register" endpoint HTTP request body.
func NewRegisterRequestBody ¶
func NewRegisterRequestBody(p *passwordauth.RegisterParams) *RegisterRequestBody
NewRegisterRequestBody builds the HTTP request body from the payload of the "register" endpoint of the "password-auth" service.
type RegisterResponseBody ¶
type RegisterResponseBody struct { // Unique unchanging user ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Given name for the user FirstName *string `form:"firstName,omitempty" json:"firstName,omitempty" xml:"firstName,omitempty"` // Family name for the user LastName *string `form:"lastName,omitempty" json:"lastName,omitempty" xml:"lastName,omitempty"` // Email attached to the account of the user Email *string `form:"email,omitempty" json:"email,omitempty" xml:"email,omitempty"` // Phone Number Of the user Phone *string `form:"phone,omitempty" json:"phone,omitempty" xml:"phone,omitempty"` // Category of the user generated by our algorithms Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"` // Phone Number Of the user Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"` // When the user attempts to change their email, this is what they will change // it to after they verify that it belongs to them ChangingEmail *string `form:"changingEmail,omitempty" json:"changingEmail,omitempty" xml:"changingEmail,omitempty"` Genres []string `form:"genres,omitempty" json:"genres,omitempty" xml:"genres,omitempty"` // Whether the user has verified their email VerifiedEmail *bool `form:"verifiedEmail,omitempty" json:"verifiedEmail,omitempty" xml:"verifiedEmail,omitempty"` // Whether the user is an administrator on the site IsAdmin *bool `form:"isAdmin,omitempty" json:"isAdmin,omitempty" xml:"isAdmin,omitempty"` // Whether the user is a brand manager on the site IsBrandManager *bool `form:"isBrandManager,omitempty" json:"isBrandManager,omitempty" xml:"isBrandManager,omitempty"` UID *string `form:"uid,omitempty" json:"uid,omitempty" xml:"uid,omitempty"` UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` IsActive *bool `form:"isActive,omitempty" json:"isActive,omitempty" xml:"isActive,omitempty"` AggCampaigns *AggCampaignMediaResponseBody `form:"aggCampaigns,omitempty" json:"aggCampaigns,omitempty" xml:"aggCampaigns,omitempty"` Gender *string `form:"gender,omitempty" json:"gender,omitempty" xml:"gender,omitempty"` Onboarded *UserOnboardedMediaResponseBody `form:"onboarded,omitempty" json:"onboarded,omitempty" xml:"onboarded,omitempty"` Location *UserLocationMediaResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` Dob *string `form:"dob,omitempty" json:"dob,omitempty" xml:"dob,omitempty"` CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` AggSocial *AggSocialMediaResponseBody `form:"aggSocial,omitempty" json:"aggSocial,omitempty" xml:"aggSocial,omitempty"` SocialMediaRawData interface{} `form:"socialMediaRawData,omitempty" json:"socialMediaRawData,omitempty" xml:"socialMediaRawData,omitempty"` }
RegisterResponseBody is the type of the "password-auth" service "register" endpoint HTTP response body.
type SelectedPlanMediaResponseBody ¶
type SelectedPlanMediaResponseBody struct { ID *string `json:"id"` Title *string `json:"title"` Description *string `json:"description"` CPC *int `json:"CPC"` Commission *int `json:"commission"` OneP *int `json:"1P"` TwoP *int `json:"2P"` OneV *int `json:"1V"` TwoV *int `json:"2V"` OnePOneV *int `json:"1P + 1V"` }
SelectedPlanMediaResponseBody is used to define fields on response body types.
type UserLocationMediaResponseBody ¶
type UserLocationMediaResponseBody struct { Street *string `form:"street,omitempty" json:"street,omitempty" xml:"street,omitempty"` Line2 *string `form:"line2,omitempty" json:"line2,omitempty" xml:"line2,omitempty"` Locality *string `form:"locality,omitempty" json:"locality,omitempty" xml:"locality,omitempty"` City *string `form:"city,omitempty" json:"city,omitempty" xml:"city,omitempty"` State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"` Country *string `form:"country,omitempty" json:"country,omitempty" xml:"country,omitempty"` Postcode *string `form:"postcode,omitempty" json:"postcode,omitempty" xml:"postcode,omitempty"` Text *string `form:"text,omitempty" json:"text,omitempty" xml:"text,omitempty"` }
UserLocationMediaResponseBody is used to define fields on response body types.
type UserOnboardedMediaResponseBody ¶
type UserOnboardedMediaResponseBody struct { Profile *bool `form:"profile,omitempty" json:"profile,omitempty" xml:"profile,omitempty"` Signup *bool `form:"signup,omitempty" json:"signup,omitempty" xml:"signup,omitempty"` Store *bool `form:"store,omitempty" json:"store,omitempty" xml:"store,omitempty"` CampaignDetails *bool `form:"campaignDetails,omitempty" json:"campaignDetails,omitempty" xml:"campaignDetails,omitempty"` }
UserOnboardedMediaResponseBody is used to define fields on response body types.