Documentation
¶
Index ¶
- func BuildDeactivatePayload(userDeactivateID string, userDeactivateAdmin string, ...) (*user.DeactivatePayload, error)
- func BuildGetAuthsPayload(userGetAuthsUserID string, userGetAuthsAuthorization string, ...) (*user.GetAuthsPayload, error)
- func BuildGetUserPayload(userGetUserAuthorization string, userGetUserXSession string, ...) (*user.GetUserPayload, error)
- func BuildResendVerifyEmailPayload(userResendVerifyEmailAuthorization string, ...) (*user.ResendVerifyEmailPayload, error)
- func BuildUpdateUserPayload(userUpdateUserBody string, userUpdateUserAuthorization string, ...) (*user.UserUpdateParams, error)
- func BuildValidateEmailPayload(userValidateEmailValidateID string, userValidateEmailAPIKey string) (*user.ValidateEmailPayload, error)
- func DeactivateUserPath() string
- func DecodeDeactivateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetAuthsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetUserResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeResendVerifyEmailResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeUpdateUserResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeValidateEmailResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func EncodeDeactivateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeGetAuthsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeGetUserRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeResendVerifyEmailRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeUpdateUserRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeValidateEmailRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func GetAuthsUserPath() string
- func GetUserUserPath() string
- func NewGetAuthsAuthStatusMediaOK(body *GetAuthsResponseBody) *userviews.AuthStatusMediaView
- func NewGetUserUserMediaOK(body *GetUserResponseBody) *userviews.UserMediaView
- func NewUpdateUserUserMediaOK(body *UpdateUserResponseBody) *userviews.UserMediaView
- func ResendVerifyEmailUserPath() string
- func UpdateUserUserPath() string
- func ValidateEmailUserPath() string
- type AggCampaignMediaResponseBody
- type AggInstagramMediaResponseBody
- type AggSocialMediaResponseBody
- type Client
- func (c *Client) BuildDeactivateRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetAuthsRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetUserRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildResendVerifyEmailRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildUpdateUserRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildValidateEmailRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) Deactivate() goa.Endpoint
- func (c *Client) GetAuths() goa.Endpoint
- func (c *Client) GetUser() goa.Endpoint
- func (c *Client) ResendVerifyEmail() goa.Endpoint
- func (c *Client) UpdateUser() goa.Endpoint
- func (c *Client) ValidateEmail() goa.Endpoint
- type GetAuthsResponseBody
- type GetUserResponseBody
- type SelectedPlanMediaResponseBody
- type UpdateUserRequestBody
- type UpdateUserResponseBody
- type UserLocationMediaResponseBody
- type UserOnboardedMediaResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDeactivatePayload ¶
func BuildDeactivatePayload(userDeactivateID string, userDeactivateAdmin string, userDeactivateAuthorization string, userDeactivateXSession string, userDeactivateAPIKey string) (*user.DeactivatePayload, error)
BuildDeactivatePayload builds the payload for the user deactivate endpoint from CLI flags.
func BuildGetAuthsPayload ¶
func BuildGetAuthsPayload(userGetAuthsUserID string, userGetAuthsAuthorization string, userGetAuthsXSession string, userGetAuthsAPIKey string) (*user.GetAuthsPayload, error)
BuildGetAuthsPayload builds the payload for the user getAuths endpoint from CLI flags.
func BuildGetUserPayload ¶
func BuildGetUserPayload(userGetUserAuthorization string, userGetUserXSession string, userGetUserAPIKey string) (*user.GetUserPayload, error)
BuildGetUserPayload builds the payload for the user getUser endpoint from CLI flags.
func BuildResendVerifyEmailPayload ¶
func BuildResendVerifyEmailPayload(userResendVerifyEmailAuthorization string, userResendVerifyEmailXSession string, userResendVerifyEmailAPIKey string) (*user.ResendVerifyEmailPayload, error)
BuildResendVerifyEmailPayload builds the payload for the user resend-verify-email endpoint from CLI flags.
func BuildUpdateUserPayload ¶
func BuildUpdateUserPayload(userUpdateUserBody string, userUpdateUserAuthorization string, userUpdateUserXSession string, userUpdateUserAPIKey string) (*user.UserUpdateParams, error)
BuildUpdateUserPayload builds the payload for the user update-user endpoint from CLI flags.
func BuildValidateEmailPayload ¶
func BuildValidateEmailPayload(userValidateEmailValidateID string, userValidateEmailAPIKey string) (*user.ValidateEmailPayload, error)
BuildValidateEmailPayload builds the payload for the user validate-email endpoint from CLI flags.
func DeactivateUserPath ¶
func DeactivateUserPath() string
DeactivateUserPath returns the URL path to the user service deactivate HTTP endpoint.
func DecodeDeactivateResponse ¶
func DecodeDeactivateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDeactivateResponse returns a decoder for responses returned by the user deactivate endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeGetAuthsResponse ¶
func DecodeGetAuthsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetAuthsResponse returns a decoder for responses returned by the user getAuths endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeGetUserResponse ¶
func DecodeGetUserResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetUserResponse returns a decoder for responses returned by the user getUser endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeResendVerifyEmailResponse ¶
func DecodeResendVerifyEmailResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeResendVerifyEmailResponse returns a decoder for responses returned by the user resend-verify-email endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeUpdateUserResponse ¶
func DecodeUpdateUserResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeUpdateUserResponse returns a decoder for responses returned by the user update-user endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeValidateEmailResponse ¶
func DecodeValidateEmailResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeValidateEmailResponse returns a decoder for responses returned by the user validate-email endpoint. restoreBody controls whether the response body should be restored after having been read.
func EncodeDeactivateRequest ¶
func EncodeDeactivateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDeactivateRequest returns an encoder for requests sent to the user deactivate server.
func EncodeGetAuthsRequest ¶
func EncodeGetAuthsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetAuthsRequest returns an encoder for requests sent to the user getAuths server.
func EncodeGetUserRequest ¶
func EncodeGetUserRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetUserRequest returns an encoder for requests sent to the user getUser server.
func EncodeResendVerifyEmailRequest ¶
func EncodeResendVerifyEmailRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeResendVerifyEmailRequest returns an encoder for requests sent to the user resend-verify-email server.
func EncodeUpdateUserRequest ¶
func EncodeUpdateUserRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeUpdateUserRequest returns an encoder for requests sent to the user update-user server.
func EncodeValidateEmailRequest ¶
func EncodeValidateEmailRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeValidateEmailRequest returns an encoder for requests sent to the user validate-email server.
func GetAuthsUserPath ¶
func GetAuthsUserPath() string
GetAuthsUserPath returns the URL path to the user service getAuths HTTP endpoint.
func GetUserUserPath ¶
func GetUserUserPath() string
GetUserUserPath returns the URL path to the user service getUser HTTP endpoint.
func NewGetAuthsAuthStatusMediaOK ¶
func NewGetAuthsAuthStatusMediaOK(body *GetAuthsResponseBody) *userviews.AuthStatusMediaView
NewGetAuthsAuthStatusMediaOK builds a "user" service "getAuths" endpoint result from a HTTP "OK" response.
func NewGetUserUserMediaOK ¶
func NewGetUserUserMediaOK(body *GetUserResponseBody) *userviews.UserMediaView
NewGetUserUserMediaOK builds a "user" service "getUser" endpoint result from a HTTP "OK" response.
func NewUpdateUserUserMediaOK ¶
func NewUpdateUserUserMediaOK(body *UpdateUserResponseBody) *userviews.UserMediaView
NewUpdateUserUserMediaOK builds a "user" service "update-user" endpoint result from a HTTP "OK" response.
func ResendVerifyEmailUserPath ¶
func ResendVerifyEmailUserPath() string
ResendVerifyEmailUserPath returns the URL path to the user service resend-verify-email HTTP endpoint.
func UpdateUserUserPath ¶
func UpdateUserUserPath() string
UpdateUserUserPath returns the URL path to the user service update-user HTTP endpoint.
func ValidateEmailUserPath ¶
func ValidateEmailUserPath() string
ValidateEmailUserPath returns the URL path to the user service validate-email 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 Client ¶
type Client struct { // GetAuths Doer is the HTTP client used to make requests to the getAuths // endpoint. GetAuthsDoer goahttp.Doer // Deactivate Doer is the HTTP client used to make requests to the deactivate // endpoint. DeactivateDoer goahttp.Doer // GetUser Doer is the HTTP client used to make requests to the getUser // endpoint. GetUserDoer goahttp.Doer // ValidateEmail Doer is the HTTP client used to make requests to the // validate-email endpoint. ValidateEmailDoer goahttp.Doer // UpdateUser Doer is the HTTP client used to make requests to the update-user // endpoint. UpdateUserDoer goahttp.Doer // ResendVerifyEmail Doer is the HTTP client used to make requests to the // resend-verify-email endpoint. ResendVerifyEmailDoer 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 user 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 user service servers.
func (*Client) BuildDeactivateRequest ¶
BuildDeactivateRequest instantiates a HTTP request object with method and path set to call the "user" service "deactivate" endpoint
func (*Client) BuildGetAuthsRequest ¶
BuildGetAuthsRequest instantiates a HTTP request object with method and path set to call the "user" service "getAuths" endpoint
func (*Client) BuildGetUserRequest ¶
BuildGetUserRequest instantiates a HTTP request object with method and path set to call the "user" service "getUser" endpoint
func (*Client) BuildResendVerifyEmailRequest ¶
func (c *Client) BuildResendVerifyEmailRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildResendVerifyEmailRequest instantiates a HTTP request object with method and path set to call the "user" service "resend-verify-email" endpoint
func (*Client) BuildUpdateUserRequest ¶
BuildUpdateUserRequest instantiates a HTTP request object with method and path set to call the "user" service "update-user" endpoint
func (*Client) BuildValidateEmailRequest ¶
func (c *Client) BuildValidateEmailRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildValidateEmailRequest instantiates a HTTP request object with method and path set to call the "user" service "validate-email" endpoint
func (*Client) Deactivate ¶
Deactivate returns an endpoint that makes HTTP requests to the user service deactivate server.
func (*Client) GetAuths ¶
GetAuths returns an endpoint that makes HTTP requests to the user service getAuths server.
func (*Client) GetUser ¶
GetUser returns an endpoint that makes HTTP requests to the user service getUser server.
func (*Client) ResendVerifyEmail ¶
ResendVerifyEmail returns an endpoint that makes HTTP requests to the user service resend-verify-email server.
func (*Client) UpdateUser ¶
UpdateUser returns an endpoint that makes HTTP requests to the user service update-user server.
func (*Client) ValidateEmail ¶
ValidateEmail returns an endpoint that makes HTTP requests to the user service validate-email server.
type GetAuthsResponseBody ¶
type GetAuthsResponseBody struct { // True if user has google Oauth signin Google *bool `form:"google,omitempty" json:"google,omitempty" xml:"google,omitempty"` // True if user has facebook Oauth signin Facebook *bool `form:"facebook,omitempty" json:"facebook,omitempty" xml:"facebook,omitempty"` // True if user has twitter Oauth signin Twitter *bool `form:"twitter,omitempty" json:"twitter,omitempty" xml:"twitter,omitempty"` // True if user has linkedin Oauth signin Linkedin *bool `form:"linkedin,omitempty" json:"linkedin,omitempty" xml:"linkedin,omitempty"` // True if user has microsoft Oauth signin Microsoft *bool `form:"microsoft,omitempty" json:"microsoft,omitempty" xml:"microsoft,omitempty"` // True if user has password signin Standard *bool `form:"standard,omitempty" json:"standard,omitempty" xml:"standard,omitempty"` }
GetAuthsResponseBody is the type of the "user" service "getAuths" endpoint HTTP response body.
type GetUserResponseBody ¶
type GetUserResponseBody 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"` Authorization *string `form:"Authorization,omitempty" json:"Authorization,omitempty" xml:"Authorization,omitempty"` XSession *string `form:"X-Session,omitempty" json:"X-Session,omitempty" xml:"X-Session,omitempty"` }
GetUserResponseBody is the type of the "user" service "getUser" 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 UpdateUserRequestBody ¶
type UpdateUserRequestBody struct { // 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"` // 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"` Gender *string `form:"gender,omitempty" json:"gender,omitempty" xml:"gender,omitempty"` Dob *string `form:"dob,omitempty" json:"dob,omitempty" xml:"dob,omitempty"` CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` }
UpdateUserRequestBody is the type of the "user" service "update-user" endpoint HTTP request body.
func NewUpdateUserRequestBody ¶
func NewUpdateUserRequestBody(p *user.UserUpdateParams) *UpdateUserRequestBody
NewUpdateUserRequestBody builds the HTTP request body from the payload of the "update-user" endpoint of the "user" service.
type UpdateUserResponseBody ¶
type UpdateUserResponseBody 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"` Authorization *string `form:"Authorization,omitempty" json:"Authorization,omitempty" xml:"Authorization,omitempty"` XSession *string `form:"X-Session,omitempty" json:"X-Session,omitempty" xml:"X-Session,omitempty"` }
UpdateUserResponseBody is the type of the "user" service "update-user" endpoint HTTP response body.
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.