Documentation
¶
Index ¶
- func AttachToAccountGooglePath() string
- func BuildAttachToAccountPayload(googleAttachToAccountAuthorization string, ...) (*google.AttachToAccountPayload, error)
- func BuildDetachFromAccountPayload(googleDetachFromAccountAuthorization string, ...) (*google.DetachFromAccountPayload, error)
- func BuildReceivePayload(googleReceiveCode string, googleReceiveState string, ...) (*google.ReceivePayload, error)
- func BuildRegisterURLPayload(googleRegisterURLAPIKey string, googleRegisterURLRedirectURL string) (*google.RegisterURLPayload, error)
- func DecodeAttachToAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDetachFromAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeReceiveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeRegisterURLResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DetachFromAccountGooglePath() string
- func EncodeAttachToAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDetachFromAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeReceiveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeRegisterURLRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func NewReceiveUserMediaOK(body *ReceiveResponseBody, authorization string, xSession string) *googleviews.UserMediaView
- func ReceiveGooglePath() string
- func RegisterURLGooglePath() string
- type AggCampaignMediaResponseBody
- type AggInstagramMediaResponseBody
- type AggSocialMediaResponseBody
- type Client
- func (c *Client) AttachToAccount() goa.Endpoint
- func (c *Client) BuildAttachToAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDetachFromAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildReceiveRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildRegisterURLRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) DetachFromAccount() goa.Endpoint
- func (c *Client) Receive() goa.Endpoint
- func (c *Client) RegisterURL() goa.Endpoint
- type ReceiveResponseBody
- type SelectedPlanMediaResponseBody
- type UserLocationMediaResponseBody
- type UserOnboardedMediaResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToAccountGooglePath ¶
func AttachToAccountGooglePath() string
AttachToAccountGooglePath returns the URL path to the google service attach-to-account HTTP endpoint.
func BuildAttachToAccountPayload ¶
func BuildAttachToAccountPayload(googleAttachToAccountAuthorization string, googleAttachToAccountXSession string, googleAttachToAccountAPIKey string, googleAttachToAccountRedirectURL string) (*google.AttachToAccountPayload, error)
BuildAttachToAccountPayload builds the payload for the google attach-to-account endpoint from CLI flags.
func BuildDetachFromAccountPayload ¶
func BuildDetachFromAccountPayload(googleDetachFromAccountAuthorization string, googleDetachFromAccountXSession string, googleDetachFromAccountAPIKey string) (*google.DetachFromAccountPayload, error)
BuildDetachFromAccountPayload builds the payload for the google detach-from-account endpoint from CLI flags.
func BuildReceivePayload ¶
func BuildReceivePayload(googleReceiveCode string, googleReceiveState string, googleReceiveAuthorization string, googleReceiveXSession string, googleReceiveRedirectURL string, googleReceiveAPIKey string) (*google.ReceivePayload, error)
BuildReceivePayload builds the payload for the google receive endpoint from CLI flags.
func BuildRegisterURLPayload ¶
func BuildRegisterURLPayload(googleRegisterURLAPIKey string, googleRegisterURLRedirectURL string) (*google.RegisterURLPayload, error)
BuildRegisterURLPayload builds the payload for the google register-url endpoint from CLI flags.
func DecodeAttachToAccountResponse ¶
func DecodeAttachToAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeAttachToAccountResponse returns a decoder for responses returned by the google attach-to-account endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeDetachFromAccountResponse ¶
func DecodeDetachFromAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDetachFromAccountResponse returns a decoder for responses returned by the google detach-from-account endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeReceiveResponse ¶
func DecodeReceiveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeReceiveResponse returns a decoder for responses returned by the google receive endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeRegisterURLResponse ¶
func DecodeRegisterURLResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeRegisterURLResponse returns a decoder for responses returned by the google register-url endpoint. restoreBody controls whether the response body should be restored after having been read.
func DetachFromAccountGooglePath ¶
func DetachFromAccountGooglePath() string
DetachFromAccountGooglePath returns the URL path to the google service detach-from-account HTTP endpoint.
func EncodeAttachToAccountRequest ¶
func EncodeAttachToAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeAttachToAccountRequest returns an encoder for requests sent to the google attach-to-account server.
func EncodeDetachFromAccountRequest ¶
func EncodeDetachFromAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDetachFromAccountRequest returns an encoder for requests sent to the google detach-from-account server.
func EncodeReceiveRequest ¶
func EncodeReceiveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeReceiveRequest returns an encoder for requests sent to the google receive server.
func EncodeRegisterURLRequest ¶
func EncodeRegisterURLRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeRegisterURLRequest returns an encoder for requests sent to the google register-url server.
func NewReceiveUserMediaOK ¶
func NewReceiveUserMediaOK(body *ReceiveResponseBody, authorization string, xSession string) *googleviews.UserMediaView
NewReceiveUserMediaOK builds a "google" service "receive" endpoint result from a HTTP "OK" response.
func ReceiveGooglePath ¶
func ReceiveGooglePath() string
ReceiveGooglePath returns the URL path to the google service receive HTTP endpoint.
func RegisterURLGooglePath ¶
func RegisterURLGooglePath() string
RegisterURLGooglePath returns the URL path to the google service register-url 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 {
// RegisterURL Doer is the HTTP client used to make requests to the
// register-url endpoint.
RegisterURLDoer goahttp.Doer
// AttachToAccount Doer is the HTTP client used to make requests to the
// attach-to-account endpoint.
AttachToAccountDoer goahttp.Doer
// DetachFromAccount Doer is the HTTP client used to make requests to the
// detach-from-account endpoint.
DetachFromAccountDoer goahttp.Doer
// Receive Doer is the HTTP client used to make requests to the receive
// endpoint.
ReceiveDoer 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 google 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 google service servers.
func (*Client) AttachToAccount ¶
AttachToAccount returns an endpoint that makes HTTP requests to the google service attach-to-account server.
func (*Client) BuildAttachToAccountRequest ¶
func (c *Client) BuildAttachToAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildAttachToAccountRequest instantiates a HTTP request object with method and path set to call the "google" service "attach-to-account" endpoint
func (*Client) BuildDetachFromAccountRequest ¶
func (c *Client) BuildDetachFromAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildDetachFromAccountRequest instantiates a HTTP request object with method and path set to call the "google" service "detach-from-account" endpoint
func (*Client) BuildReceiveRequest ¶
BuildReceiveRequest instantiates a HTTP request object with method and path set to call the "google" service "receive" endpoint
func (*Client) BuildRegisterURLRequest ¶
BuildRegisterURLRequest instantiates a HTTP request object with method and path set to call the "google" service "register-url" endpoint
func (*Client) DetachFromAccount ¶
DetachFromAccount returns an endpoint that makes HTTP requests to the google service detach-from-account server.
func (*Client) Receive ¶
Receive returns an endpoint that makes HTTP requests to the google service receive server.
func (*Client) RegisterURL ¶
RegisterURL returns an endpoint that makes HTTP requests to the google service register-url server.
type ReceiveResponseBody ¶
type ReceiveResponseBody 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"`
}
ReceiveResponseBody is the type of the "google" service "receive" 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.