Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateContact(params *CreateContactParams, authInfo runtime.ClientAuthInfoWriter) (*CreateContactCreated, error)
- func (a *Client) GetContactInfo(params *GetContactInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetContactInfoOK, error)
- func (a *Client) GetContactStats(params *GetContactStatsParams, authInfo runtime.ClientAuthInfoWriter) (*GetContactStatsOK, error)
- func (a *Client) GetContacts(params *GetContactsParams, authInfo runtime.ClientAuthInfoWriter) (*GetContactsOK, error)
- func (a *Client) ImportContacts(params *ImportContactsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportContactsAccepted, error)
- func (a *Client) RequestContactExport(params *RequestContactExportParams, authInfo runtime.ClientAuthInfoWriter) (*RequestContactExportAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateContact(params *UpdateContactParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContactNoContent, error)
- type CreateContactBadRequest
- type CreateContactCreated
- type CreateContactParams
- func (o *CreateContactParams) SetContext(ctx context.Context)
- func (o *CreateContactParams) SetCreateContact(createContact *models.CreateContact)
- func (o *CreateContactParams) SetHTTPClient(client *http.Client)
- func (o *CreateContactParams) SetTimeout(timeout time.Duration)
- func (o *CreateContactParams) WithContext(ctx context.Context) *CreateContactParams
- func (o *CreateContactParams) WithCreateContact(createContact *models.CreateContact) *CreateContactParams
- func (o *CreateContactParams) WithHTTPClient(client *http.Client) *CreateContactParams
- func (o *CreateContactParams) WithTimeout(timeout time.Duration) *CreateContactParams
- func (o *CreateContactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateContactReader
- type GetContactInfoBadRequest
- type GetContactInfoNotFound
- type GetContactInfoOK
- type GetContactInfoParams
- func NewGetContactInfoParams() *GetContactInfoParams
- func NewGetContactInfoParamsWithContext(ctx context.Context) *GetContactInfoParams
- func NewGetContactInfoParamsWithHTTPClient(client *http.Client) *GetContactInfoParams
- func NewGetContactInfoParamsWithTimeout(timeout time.Duration) *GetContactInfoParams
- func (o *GetContactInfoParams) SetContext(ctx context.Context)
- func (o *GetContactInfoParams) SetEmail(email string)
- func (o *GetContactInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetContactInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetContactInfoParams) WithContext(ctx context.Context) *GetContactInfoParams
- func (o *GetContactInfoParams) WithEmail(email string) *GetContactInfoParams
- func (o *GetContactInfoParams) WithHTTPClient(client *http.Client) *GetContactInfoParams
- func (o *GetContactInfoParams) WithTimeout(timeout time.Duration) *GetContactInfoParams
- func (o *GetContactInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetContactInfoReader
- type GetContactStatsBadRequest
- type GetContactStatsNotFound
- type GetContactStatsOK
- type GetContactStatsParams
- func NewGetContactStatsParams() *GetContactStatsParams
- func NewGetContactStatsParamsWithContext(ctx context.Context) *GetContactStatsParams
- func NewGetContactStatsParamsWithHTTPClient(client *http.Client) *GetContactStatsParams
- func NewGetContactStatsParamsWithTimeout(timeout time.Duration) *GetContactStatsParams
- func (o *GetContactStatsParams) SetContext(ctx context.Context)
- func (o *GetContactStatsParams) SetEmail(email string)
- func (o *GetContactStatsParams) SetHTTPClient(client *http.Client)
- func (o *GetContactStatsParams) SetTimeout(timeout time.Duration)
- func (o *GetContactStatsParams) WithContext(ctx context.Context) *GetContactStatsParams
- func (o *GetContactStatsParams) WithEmail(email string) *GetContactStatsParams
- func (o *GetContactStatsParams) WithHTTPClient(client *http.Client) *GetContactStatsParams
- func (o *GetContactStatsParams) WithTimeout(timeout time.Duration) *GetContactStatsParams
- func (o *GetContactStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetContactStatsReader
- type GetContactsBadRequest
- type GetContactsOK
- type GetContactsParams
- func (o *GetContactsParams) SetContext(ctx context.Context)
- func (o *GetContactsParams) SetHTTPClient(client *http.Client)
- func (o *GetContactsParams) SetLimit(limit *int64)
- func (o *GetContactsParams) SetOffset(offset *int64)
- func (o *GetContactsParams) SetTimeout(timeout time.Duration)
- func (o *GetContactsParams) WithContext(ctx context.Context) *GetContactsParams
- func (o *GetContactsParams) WithHTTPClient(client *http.Client) *GetContactsParams
- func (o *GetContactsParams) WithLimit(limit *int64) *GetContactsParams
- func (o *GetContactsParams) WithOffset(offset *int64) *GetContactsParams
- func (o *GetContactsParams) WithTimeout(timeout time.Duration) *GetContactsParams
- func (o *GetContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetContactsReader
- type ImportContactsAccepted
- type ImportContactsBadRequest
- type ImportContactsParams
- func NewImportContactsParams() *ImportContactsParams
- func NewImportContactsParamsWithContext(ctx context.Context) *ImportContactsParams
- func NewImportContactsParamsWithHTTPClient(client *http.Client) *ImportContactsParams
- func NewImportContactsParamsWithTimeout(timeout time.Duration) *ImportContactsParams
- func (o *ImportContactsParams) SetContext(ctx context.Context)
- func (o *ImportContactsParams) SetHTTPClient(client *http.Client)
- func (o *ImportContactsParams) SetRequestContactImport(requestContactImport *models.RequestContactImport)
- func (o *ImportContactsParams) SetTimeout(timeout time.Duration)
- func (o *ImportContactsParams) WithContext(ctx context.Context) *ImportContactsParams
- func (o *ImportContactsParams) WithHTTPClient(client *http.Client) *ImportContactsParams
- func (o *ImportContactsParams) WithRequestContactImport(requestContactImport *models.RequestContactImport) *ImportContactsParams
- func (o *ImportContactsParams) WithTimeout(timeout time.Duration) *ImportContactsParams
- func (o *ImportContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ImportContactsReader
- type RequestContactExportAccepted
- type RequestContactExportBadRequest
- type RequestContactExportParams
- func NewRequestContactExportParams() *RequestContactExportParams
- func NewRequestContactExportParamsWithContext(ctx context.Context) *RequestContactExportParams
- func NewRequestContactExportParamsWithHTTPClient(client *http.Client) *RequestContactExportParams
- func NewRequestContactExportParamsWithTimeout(timeout time.Duration) *RequestContactExportParams
- func (o *RequestContactExportParams) SetContext(ctx context.Context)
- func (o *RequestContactExportParams) SetHTTPClient(client *http.Client)
- func (o *RequestContactExportParams) SetRequestContactExport(requestContactExport *models.RequestContactExport)
- func (o *RequestContactExportParams) SetTimeout(timeout time.Duration)
- func (o *RequestContactExportParams) WithContext(ctx context.Context) *RequestContactExportParams
- func (o *RequestContactExportParams) WithHTTPClient(client *http.Client) *RequestContactExportParams
- func (o *RequestContactExportParams) WithRequestContactExport(requestContactExport *models.RequestContactExport) *RequestContactExportParams
- func (o *RequestContactExportParams) WithTimeout(timeout time.Duration) *RequestContactExportParams
- func (o *RequestContactExportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RequestContactExportReader
- type UpdateContactBadRequest
- type UpdateContactNoContent
- type UpdateContactNotFound
- type UpdateContactParams
- func (o *UpdateContactParams) SetContext(ctx context.Context)
- func (o *UpdateContactParams) SetEmail(email string)
- func (o *UpdateContactParams) SetHTTPClient(client *http.Client)
- func (o *UpdateContactParams) SetTimeout(timeout time.Duration)
- func (o *UpdateContactParams) SetUpdateContact(updateContact *models.UpdateContact)
- func (o *UpdateContactParams) WithContext(ctx context.Context) *UpdateContactParams
- func (o *UpdateContactParams) WithEmail(email string) *UpdateContactParams
- func (o *UpdateContactParams) WithHTTPClient(client *http.Client) *UpdateContactParams
- func (o *UpdateContactParams) WithTimeout(timeout time.Duration) *UpdateContactParams
- func (o *UpdateContactParams) WithUpdateContact(updateContact *models.UpdateContact) *UpdateContactParams
- func (o *UpdateContactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateContactReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for contacts API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new contacts API client.
func (*Client) CreateContact ¶
func (a *Client) CreateContact(params *CreateContactParams, authInfo runtime.ClientAuthInfoWriter) (*CreateContactCreated, error)
CreateContact creates a contact
func (*Client) GetContactInfo ¶
func (a *Client) GetContactInfo(params *GetContactInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetContactInfoOK, error)
GetContactInfo retrieves contact informations
func (*Client) GetContactStats ¶
func (a *Client) GetContactStats(params *GetContactStatsParams, authInfo runtime.ClientAuthInfoWriter) (*GetContactStatsOK, error)
GetContactStats gets the campaigns statistics for a contact
func (*Client) GetContacts ¶
func (a *Client) GetContacts(params *GetContactsParams, authInfo runtime.ClientAuthInfoWriter) (*GetContactsOK, error)
GetContacts gets all the contacts
func (*Client) ImportContacts ¶
func (a *Client) ImportContacts(params *ImportContactsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportContactsAccepted, error)
ImportContacts imports contacts
It returns the background process ID which on completion calls the notify URL that you have set in the input.
func (*Client) RequestContactExport ¶
func (a *Client) RequestContactExport(params *RequestContactExportParams, authInfo runtime.ClientAuthInfoWriter) (*RequestContactExportAccepted, error)
RequestContactExport exports contacts
It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateContact ¶
func (a *Client) UpdateContact(params *UpdateContactParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContactNoContent, error)
UpdateContact updates a contact
type CreateContactBadRequest ¶
type CreateContactBadRequest struct {
Payload *models.ErrorModel
}
CreateContactBadRequest handles this case with default header values.
bad request
func NewCreateContactBadRequest ¶
func NewCreateContactBadRequest() *CreateContactBadRequest
NewCreateContactBadRequest creates a CreateContactBadRequest with default headers values
func (*CreateContactBadRequest) Error ¶
func (o *CreateContactBadRequest) Error() string
type CreateContactCreated ¶
type CreateContactCreated struct {
Payload *models.CreateModel
}
CreateContactCreated handles this case with default header values.
Contact created
func NewCreateContactCreated ¶
func NewCreateContactCreated() *CreateContactCreated
NewCreateContactCreated creates a CreateContactCreated with default headers values
func (*CreateContactCreated) Error ¶
func (o *CreateContactCreated) Error() string
type CreateContactParams ¶
type CreateContactParams struct { /*CreateContact Values to create a contact */ CreateContact *models.CreateContact Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateContactParams contains all the parameters to send to the API endpoint for the create contact operation typically these are written to a http.Request
func NewCreateContactParams ¶
func NewCreateContactParams() *CreateContactParams
NewCreateContactParams creates a new CreateContactParams object with the default values initialized.
func NewCreateContactParamsWithContext ¶
func NewCreateContactParamsWithContext(ctx context.Context) *CreateContactParams
NewCreateContactParamsWithContext creates a new CreateContactParams object with the default values initialized, and the ability to set a context for a request
func NewCreateContactParamsWithHTTPClient ¶
func NewCreateContactParamsWithHTTPClient(client *http.Client) *CreateContactParams
NewCreateContactParamsWithHTTPClient creates a new CreateContactParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateContactParamsWithTimeout ¶
func NewCreateContactParamsWithTimeout(timeout time.Duration) *CreateContactParams
NewCreateContactParamsWithTimeout creates a new CreateContactParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateContactParams) SetContext ¶
func (o *CreateContactParams) SetContext(ctx context.Context)
SetContext adds the context to the create contact params
func (*CreateContactParams) SetCreateContact ¶
func (o *CreateContactParams) SetCreateContact(createContact *models.CreateContact)
SetCreateContact adds the createContact to the create contact params
func (*CreateContactParams) SetHTTPClient ¶
func (o *CreateContactParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create contact params
func (*CreateContactParams) SetTimeout ¶
func (o *CreateContactParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create contact params
func (*CreateContactParams) WithContext ¶
func (o *CreateContactParams) WithContext(ctx context.Context) *CreateContactParams
WithContext adds the context to the create contact params
func (*CreateContactParams) WithCreateContact ¶
func (o *CreateContactParams) WithCreateContact(createContact *models.CreateContact) *CreateContactParams
WithCreateContact adds the createContact to the create contact params
func (*CreateContactParams) WithHTTPClient ¶
func (o *CreateContactParams) WithHTTPClient(client *http.Client) *CreateContactParams
WithHTTPClient adds the HTTPClient to the create contact params
func (*CreateContactParams) WithTimeout ¶
func (o *CreateContactParams) WithTimeout(timeout time.Duration) *CreateContactParams
WithTimeout adds the timeout to the create contact params
func (*CreateContactParams) WriteToRequest ¶
func (o *CreateContactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateContactReader ¶
type CreateContactReader struct {
// contains filtered or unexported fields
}
CreateContactReader is a Reader for the CreateContact structure.
func (*CreateContactReader) ReadResponse ¶
func (o *CreateContactReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetContactInfoBadRequest ¶
type GetContactInfoBadRequest struct {
Payload *models.ErrorModel
}
GetContactInfoBadRequest handles this case with default header values.
bad request
func NewGetContactInfoBadRequest ¶
func NewGetContactInfoBadRequest() *GetContactInfoBadRequest
NewGetContactInfoBadRequest creates a GetContactInfoBadRequest with default headers values
func (*GetContactInfoBadRequest) Error ¶
func (o *GetContactInfoBadRequest) Error() string
type GetContactInfoNotFound ¶
type GetContactInfoNotFound struct {
Payload *models.ErrorModel
}
GetContactInfoNotFound handles this case with default header values.
Contact's email not found
func NewGetContactInfoNotFound ¶
func NewGetContactInfoNotFound() *GetContactInfoNotFound
NewGetContactInfoNotFound creates a GetContactInfoNotFound with default headers values
func (*GetContactInfoNotFound) Error ¶
func (o *GetContactInfoNotFound) Error() string
type GetContactInfoOK ¶
type GetContactInfoOK struct {
Payload *models.GetExtendedContactDetails
}
GetContactInfoOK handles this case with default header values.
Contact informations
func NewGetContactInfoOK ¶
func NewGetContactInfoOK() *GetContactInfoOK
NewGetContactInfoOK creates a GetContactInfoOK with default headers values
func (*GetContactInfoOK) Error ¶
func (o *GetContactInfoOK) Error() string
type GetContactInfoParams ¶
type GetContactInfoParams struct { /*Email Email (urlencoded) of the contact */ Email string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetContactInfoParams contains all the parameters to send to the API endpoint for the get contact info operation typically these are written to a http.Request
func NewGetContactInfoParams ¶
func NewGetContactInfoParams() *GetContactInfoParams
NewGetContactInfoParams creates a new GetContactInfoParams object with the default values initialized.
func NewGetContactInfoParamsWithContext ¶
func NewGetContactInfoParamsWithContext(ctx context.Context) *GetContactInfoParams
NewGetContactInfoParamsWithContext creates a new GetContactInfoParams object with the default values initialized, and the ability to set a context for a request
func NewGetContactInfoParamsWithHTTPClient ¶
func NewGetContactInfoParamsWithHTTPClient(client *http.Client) *GetContactInfoParams
NewGetContactInfoParamsWithHTTPClient creates a new GetContactInfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetContactInfoParamsWithTimeout ¶
func NewGetContactInfoParamsWithTimeout(timeout time.Duration) *GetContactInfoParams
NewGetContactInfoParamsWithTimeout creates a new GetContactInfoParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetContactInfoParams) SetContext ¶
func (o *GetContactInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get contact info params
func (*GetContactInfoParams) SetEmail ¶
func (o *GetContactInfoParams) SetEmail(email string)
SetEmail adds the email to the get contact info params
func (*GetContactInfoParams) SetHTTPClient ¶
func (o *GetContactInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get contact info params
func (*GetContactInfoParams) SetTimeout ¶
func (o *GetContactInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get contact info params
func (*GetContactInfoParams) WithContext ¶
func (o *GetContactInfoParams) WithContext(ctx context.Context) *GetContactInfoParams
WithContext adds the context to the get contact info params
func (*GetContactInfoParams) WithEmail ¶
func (o *GetContactInfoParams) WithEmail(email string) *GetContactInfoParams
WithEmail adds the email to the get contact info params
func (*GetContactInfoParams) WithHTTPClient ¶
func (o *GetContactInfoParams) WithHTTPClient(client *http.Client) *GetContactInfoParams
WithHTTPClient adds the HTTPClient to the get contact info params
func (*GetContactInfoParams) WithTimeout ¶
func (o *GetContactInfoParams) WithTimeout(timeout time.Duration) *GetContactInfoParams
WithTimeout adds the timeout to the get contact info params
func (*GetContactInfoParams) WriteToRequest ¶
func (o *GetContactInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetContactInfoReader ¶
type GetContactInfoReader struct {
// contains filtered or unexported fields
}
GetContactInfoReader is a Reader for the GetContactInfo structure.
func (*GetContactInfoReader) ReadResponse ¶
func (o *GetContactInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetContactStatsBadRequest ¶
type GetContactStatsBadRequest struct {
Payload *models.ErrorModel
}
GetContactStatsBadRequest handles this case with default header values.
bad request
func NewGetContactStatsBadRequest ¶
func NewGetContactStatsBadRequest() *GetContactStatsBadRequest
NewGetContactStatsBadRequest creates a GetContactStatsBadRequest with default headers values
func (*GetContactStatsBadRequest) Error ¶
func (o *GetContactStatsBadRequest) Error() string
type GetContactStatsNotFound ¶
type GetContactStatsNotFound struct {
Payload *models.ErrorModel
}
GetContactStatsNotFound handles this case with default header values.
Contact's email not found
func NewGetContactStatsNotFound ¶
func NewGetContactStatsNotFound() *GetContactStatsNotFound
NewGetContactStatsNotFound creates a GetContactStatsNotFound with default headers values
func (*GetContactStatsNotFound) Error ¶
func (o *GetContactStatsNotFound) Error() string
type GetContactStatsOK ¶
type GetContactStatsOK struct {
Payload *models.GetContactCampaignStats
}
GetContactStatsOK handles this case with default header values.
Contact campaign statistics informations
func NewGetContactStatsOK ¶
func NewGetContactStatsOK() *GetContactStatsOK
NewGetContactStatsOK creates a GetContactStatsOK with default headers values
func (*GetContactStatsOK) Error ¶
func (o *GetContactStatsOK) Error() string
type GetContactStatsParams ¶
type GetContactStatsParams struct { /*Email Email address (urlencoded) of the contact */ Email string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetContactStatsParams contains all the parameters to send to the API endpoint for the get contact stats operation typically these are written to a http.Request
func NewGetContactStatsParams ¶
func NewGetContactStatsParams() *GetContactStatsParams
NewGetContactStatsParams creates a new GetContactStatsParams object with the default values initialized.
func NewGetContactStatsParamsWithContext ¶
func NewGetContactStatsParamsWithContext(ctx context.Context) *GetContactStatsParams
NewGetContactStatsParamsWithContext creates a new GetContactStatsParams object with the default values initialized, and the ability to set a context for a request
func NewGetContactStatsParamsWithHTTPClient ¶
func NewGetContactStatsParamsWithHTTPClient(client *http.Client) *GetContactStatsParams
NewGetContactStatsParamsWithHTTPClient creates a new GetContactStatsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetContactStatsParamsWithTimeout ¶
func NewGetContactStatsParamsWithTimeout(timeout time.Duration) *GetContactStatsParams
NewGetContactStatsParamsWithTimeout creates a new GetContactStatsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetContactStatsParams) SetContext ¶
func (o *GetContactStatsParams) SetContext(ctx context.Context)
SetContext adds the context to the get contact stats params
func (*GetContactStatsParams) SetEmail ¶
func (o *GetContactStatsParams) SetEmail(email string)
SetEmail adds the email to the get contact stats params
func (*GetContactStatsParams) SetHTTPClient ¶
func (o *GetContactStatsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get contact stats params
func (*GetContactStatsParams) SetTimeout ¶
func (o *GetContactStatsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get contact stats params
func (*GetContactStatsParams) WithContext ¶
func (o *GetContactStatsParams) WithContext(ctx context.Context) *GetContactStatsParams
WithContext adds the context to the get contact stats params
func (*GetContactStatsParams) WithEmail ¶
func (o *GetContactStatsParams) WithEmail(email string) *GetContactStatsParams
WithEmail adds the email to the get contact stats params
func (*GetContactStatsParams) WithHTTPClient ¶
func (o *GetContactStatsParams) WithHTTPClient(client *http.Client) *GetContactStatsParams
WithHTTPClient adds the HTTPClient to the get contact stats params
func (*GetContactStatsParams) WithTimeout ¶
func (o *GetContactStatsParams) WithTimeout(timeout time.Duration) *GetContactStatsParams
WithTimeout adds the timeout to the get contact stats params
func (*GetContactStatsParams) WriteToRequest ¶
func (o *GetContactStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetContactStatsReader ¶
type GetContactStatsReader struct {
// contains filtered or unexported fields
}
GetContactStatsReader is a Reader for the GetContactStats structure.
func (*GetContactStatsReader) ReadResponse ¶
func (o *GetContactStatsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetContactsBadRequest ¶
type GetContactsBadRequest struct {
Payload *models.ErrorModel
}
GetContactsBadRequest handles this case with default header values.
bad request
func NewGetContactsBadRequest ¶
func NewGetContactsBadRequest() *GetContactsBadRequest
NewGetContactsBadRequest creates a GetContactsBadRequest with default headers values
func (*GetContactsBadRequest) Error ¶
func (o *GetContactsBadRequest) Error() string
type GetContactsOK ¶
type GetContactsOK struct {
Payload *models.GetContacts
}
GetContactsOK handles this case with default header values.
All contacts listed
func NewGetContactsOK ¶
func NewGetContactsOK() *GetContactsOK
NewGetContactsOK creates a GetContactsOK with default headers values
func (*GetContactsOK) Error ¶
func (o *GetContactsOK) Error() string
type GetContactsParams ¶
type GetContactsParams struct { /*Limit Number of documents per page */ Limit *int64 /*Offset Index of the first document of the page */ Offset *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetContactsParams contains all the parameters to send to the API endpoint for the get contacts operation typically these are written to a http.Request
func NewGetContactsParams ¶
func NewGetContactsParams() *GetContactsParams
NewGetContactsParams creates a new GetContactsParams object with the default values initialized.
func NewGetContactsParamsWithContext ¶
func NewGetContactsParamsWithContext(ctx context.Context) *GetContactsParams
NewGetContactsParamsWithContext creates a new GetContactsParams object with the default values initialized, and the ability to set a context for a request
func NewGetContactsParamsWithHTTPClient ¶
func NewGetContactsParamsWithHTTPClient(client *http.Client) *GetContactsParams
NewGetContactsParamsWithHTTPClient creates a new GetContactsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetContactsParamsWithTimeout ¶
func NewGetContactsParamsWithTimeout(timeout time.Duration) *GetContactsParams
NewGetContactsParamsWithTimeout creates a new GetContactsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetContactsParams) SetContext ¶
func (o *GetContactsParams) SetContext(ctx context.Context)
SetContext adds the context to the get contacts params
func (*GetContactsParams) SetHTTPClient ¶
func (o *GetContactsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get contacts params
func (*GetContactsParams) SetLimit ¶
func (o *GetContactsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get contacts params
func (*GetContactsParams) SetOffset ¶
func (o *GetContactsParams) SetOffset(offset *int64)
SetOffset adds the offset to the get contacts params
func (*GetContactsParams) SetTimeout ¶
func (o *GetContactsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get contacts params
func (*GetContactsParams) WithContext ¶
func (o *GetContactsParams) WithContext(ctx context.Context) *GetContactsParams
WithContext adds the context to the get contacts params
func (*GetContactsParams) WithHTTPClient ¶
func (o *GetContactsParams) WithHTTPClient(client *http.Client) *GetContactsParams
WithHTTPClient adds the HTTPClient to the get contacts params
func (*GetContactsParams) WithLimit ¶
func (o *GetContactsParams) WithLimit(limit *int64) *GetContactsParams
WithLimit adds the limit to the get contacts params
func (*GetContactsParams) WithOffset ¶
func (o *GetContactsParams) WithOffset(offset *int64) *GetContactsParams
WithOffset adds the offset to the get contacts params
func (*GetContactsParams) WithTimeout ¶
func (o *GetContactsParams) WithTimeout(timeout time.Duration) *GetContactsParams
WithTimeout adds the timeout to the get contacts params
func (*GetContactsParams) WriteToRequest ¶
func (o *GetContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetContactsReader ¶
type GetContactsReader struct {
// contains filtered or unexported fields
}
GetContactsReader is a Reader for the GetContacts structure.
func (*GetContactsReader) ReadResponse ¶
func (o *GetContactsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ImportContactsAccepted ¶
type ImportContactsAccepted struct {
Payload *models.CreatedProcessID
}
ImportContactsAccepted handles this case with default header values.
Contact import request has been accepted
func NewImportContactsAccepted ¶
func NewImportContactsAccepted() *ImportContactsAccepted
NewImportContactsAccepted creates a ImportContactsAccepted with default headers values
func (*ImportContactsAccepted) Error ¶
func (o *ImportContactsAccepted) Error() string
type ImportContactsBadRequest ¶
type ImportContactsBadRequest struct {
Payload *models.ErrorModel
}
ImportContactsBadRequest handles this case with default header values.
bad request
func NewImportContactsBadRequest ¶
func NewImportContactsBadRequest() *ImportContactsBadRequest
NewImportContactsBadRequest creates a ImportContactsBadRequest with default headers values
func (*ImportContactsBadRequest) Error ¶
func (o *ImportContactsBadRequest) Error() string
type ImportContactsParams ¶
type ImportContactsParams struct { /*RequestContactImport Values to import contacts in Sendinblue. To know more about the expected format, please have a look at “https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns“ */ RequestContactImport *models.RequestContactImport Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ImportContactsParams contains all the parameters to send to the API endpoint for the import contacts operation typically these are written to a http.Request
func NewImportContactsParams ¶
func NewImportContactsParams() *ImportContactsParams
NewImportContactsParams creates a new ImportContactsParams object with the default values initialized.
func NewImportContactsParamsWithContext ¶
func NewImportContactsParamsWithContext(ctx context.Context) *ImportContactsParams
NewImportContactsParamsWithContext creates a new ImportContactsParams object with the default values initialized, and the ability to set a context for a request
func NewImportContactsParamsWithHTTPClient ¶
func NewImportContactsParamsWithHTTPClient(client *http.Client) *ImportContactsParams
NewImportContactsParamsWithHTTPClient creates a new ImportContactsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewImportContactsParamsWithTimeout ¶
func NewImportContactsParamsWithTimeout(timeout time.Duration) *ImportContactsParams
NewImportContactsParamsWithTimeout creates a new ImportContactsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ImportContactsParams) SetContext ¶
func (o *ImportContactsParams) SetContext(ctx context.Context)
SetContext adds the context to the import contacts params
func (*ImportContactsParams) SetHTTPClient ¶
func (o *ImportContactsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the import contacts params
func (*ImportContactsParams) SetRequestContactImport ¶
func (o *ImportContactsParams) SetRequestContactImport(requestContactImport *models.RequestContactImport)
SetRequestContactImport adds the requestContactImport to the import contacts params
func (*ImportContactsParams) SetTimeout ¶
func (o *ImportContactsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the import contacts params
func (*ImportContactsParams) WithContext ¶
func (o *ImportContactsParams) WithContext(ctx context.Context) *ImportContactsParams
WithContext adds the context to the import contacts params
func (*ImportContactsParams) WithHTTPClient ¶
func (o *ImportContactsParams) WithHTTPClient(client *http.Client) *ImportContactsParams
WithHTTPClient adds the HTTPClient to the import contacts params
func (*ImportContactsParams) WithRequestContactImport ¶
func (o *ImportContactsParams) WithRequestContactImport(requestContactImport *models.RequestContactImport) *ImportContactsParams
WithRequestContactImport adds the requestContactImport to the import contacts params
func (*ImportContactsParams) WithTimeout ¶
func (o *ImportContactsParams) WithTimeout(timeout time.Duration) *ImportContactsParams
WithTimeout adds the timeout to the import contacts params
func (*ImportContactsParams) WriteToRequest ¶
func (o *ImportContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ImportContactsReader ¶
type ImportContactsReader struct {
// contains filtered or unexported fields
}
ImportContactsReader is a Reader for the ImportContacts structure.
func (*ImportContactsReader) ReadResponse ¶
func (o *ImportContactsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RequestContactExportAccepted ¶
type RequestContactExportAccepted struct {
Payload *models.CreatedProcessID
}
RequestContactExportAccepted handles this case with default header values.
Contact export request has been accepted
func NewRequestContactExportAccepted ¶
func NewRequestContactExportAccepted() *RequestContactExportAccepted
NewRequestContactExportAccepted creates a RequestContactExportAccepted with default headers values
func (*RequestContactExportAccepted) Error ¶
func (o *RequestContactExportAccepted) Error() string
type RequestContactExportBadRequest ¶
type RequestContactExportBadRequest struct {
Payload *models.ErrorModel
}
RequestContactExportBadRequest handles this case with default header values.
bad request
func NewRequestContactExportBadRequest ¶
func NewRequestContactExportBadRequest() *RequestContactExportBadRequest
NewRequestContactExportBadRequest creates a RequestContactExportBadRequest with default headers values
func (*RequestContactExportBadRequest) Error ¶
func (o *RequestContactExportBadRequest) Error() string
type RequestContactExportParams ¶
type RequestContactExportParams struct { /*RequestContactExport Values to request a contact export */ RequestContactExport *models.RequestContactExport Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RequestContactExportParams contains all the parameters to send to the API endpoint for the request contact export operation typically these are written to a http.Request
func NewRequestContactExportParams ¶
func NewRequestContactExportParams() *RequestContactExportParams
NewRequestContactExportParams creates a new RequestContactExportParams object with the default values initialized.
func NewRequestContactExportParamsWithContext ¶
func NewRequestContactExportParamsWithContext(ctx context.Context) *RequestContactExportParams
NewRequestContactExportParamsWithContext creates a new RequestContactExportParams object with the default values initialized, and the ability to set a context for a request
func NewRequestContactExportParamsWithHTTPClient ¶
func NewRequestContactExportParamsWithHTTPClient(client *http.Client) *RequestContactExportParams
NewRequestContactExportParamsWithHTTPClient creates a new RequestContactExportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRequestContactExportParamsWithTimeout ¶
func NewRequestContactExportParamsWithTimeout(timeout time.Duration) *RequestContactExportParams
NewRequestContactExportParamsWithTimeout creates a new RequestContactExportParams object with the default values initialized, and the ability to set a timeout on a request
func (*RequestContactExportParams) SetContext ¶
func (o *RequestContactExportParams) SetContext(ctx context.Context)
SetContext adds the context to the request contact export params
func (*RequestContactExportParams) SetHTTPClient ¶
func (o *RequestContactExportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the request contact export params
func (*RequestContactExportParams) SetRequestContactExport ¶
func (o *RequestContactExportParams) SetRequestContactExport(requestContactExport *models.RequestContactExport)
SetRequestContactExport adds the requestContactExport to the request contact export params
func (*RequestContactExportParams) SetTimeout ¶
func (o *RequestContactExportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the request contact export params
func (*RequestContactExportParams) WithContext ¶
func (o *RequestContactExportParams) WithContext(ctx context.Context) *RequestContactExportParams
WithContext adds the context to the request contact export params
func (*RequestContactExportParams) WithHTTPClient ¶
func (o *RequestContactExportParams) WithHTTPClient(client *http.Client) *RequestContactExportParams
WithHTTPClient adds the HTTPClient to the request contact export params
func (*RequestContactExportParams) WithRequestContactExport ¶
func (o *RequestContactExportParams) WithRequestContactExport(requestContactExport *models.RequestContactExport) *RequestContactExportParams
WithRequestContactExport adds the requestContactExport to the request contact export params
func (*RequestContactExportParams) WithTimeout ¶
func (o *RequestContactExportParams) WithTimeout(timeout time.Duration) *RequestContactExportParams
WithTimeout adds the timeout to the request contact export params
func (*RequestContactExportParams) WriteToRequest ¶
func (o *RequestContactExportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RequestContactExportReader ¶
type RequestContactExportReader struct {
// contains filtered or unexported fields
}
RequestContactExportReader is a Reader for the RequestContactExport structure.
func (*RequestContactExportReader) ReadResponse ¶
func (o *RequestContactExportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateContactBadRequest ¶
type UpdateContactBadRequest struct {
Payload *models.ErrorModel
}
UpdateContactBadRequest handles this case with default header values.
bad request
func NewUpdateContactBadRequest ¶
func NewUpdateContactBadRequest() *UpdateContactBadRequest
NewUpdateContactBadRequest creates a UpdateContactBadRequest with default headers values
func (*UpdateContactBadRequest) Error ¶
func (o *UpdateContactBadRequest) Error() string
type UpdateContactNoContent ¶
type UpdateContactNoContent struct { }
UpdateContactNoContent handles this case with default header values.
Contact updated
func NewUpdateContactNoContent ¶
func NewUpdateContactNoContent() *UpdateContactNoContent
NewUpdateContactNoContent creates a UpdateContactNoContent with default headers values
func (*UpdateContactNoContent) Error ¶
func (o *UpdateContactNoContent) Error() string
type UpdateContactNotFound ¶
type UpdateContactNotFound struct {
Payload *models.ErrorModel
}
UpdateContactNotFound handles this case with default header values.
Contact's email not found
func NewUpdateContactNotFound ¶
func NewUpdateContactNotFound() *UpdateContactNotFound
NewUpdateContactNotFound creates a UpdateContactNotFound with default headers values
func (*UpdateContactNotFound) Error ¶
func (o *UpdateContactNotFound) Error() string
type UpdateContactParams ¶
type UpdateContactParams struct { /*Email Email (urlencoded) of the contact */ Email string /*UpdateContact Values to update a contact */ UpdateContact *models.UpdateContact Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateContactParams contains all the parameters to send to the API endpoint for the update contact operation typically these are written to a http.Request
func NewUpdateContactParams ¶
func NewUpdateContactParams() *UpdateContactParams
NewUpdateContactParams creates a new UpdateContactParams object with the default values initialized.
func NewUpdateContactParamsWithContext ¶
func NewUpdateContactParamsWithContext(ctx context.Context) *UpdateContactParams
NewUpdateContactParamsWithContext creates a new UpdateContactParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateContactParamsWithHTTPClient ¶
func NewUpdateContactParamsWithHTTPClient(client *http.Client) *UpdateContactParams
NewUpdateContactParamsWithHTTPClient creates a new UpdateContactParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateContactParamsWithTimeout ¶
func NewUpdateContactParamsWithTimeout(timeout time.Duration) *UpdateContactParams
NewUpdateContactParamsWithTimeout creates a new UpdateContactParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateContactParams) SetContext ¶
func (o *UpdateContactParams) SetContext(ctx context.Context)
SetContext adds the context to the update contact params
func (*UpdateContactParams) SetEmail ¶
func (o *UpdateContactParams) SetEmail(email string)
SetEmail adds the email to the update contact params
func (*UpdateContactParams) SetHTTPClient ¶
func (o *UpdateContactParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update contact params
func (*UpdateContactParams) SetTimeout ¶
func (o *UpdateContactParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update contact params
func (*UpdateContactParams) SetUpdateContact ¶
func (o *UpdateContactParams) SetUpdateContact(updateContact *models.UpdateContact)
SetUpdateContact adds the updateContact to the update contact params
func (*UpdateContactParams) WithContext ¶
func (o *UpdateContactParams) WithContext(ctx context.Context) *UpdateContactParams
WithContext adds the context to the update contact params
func (*UpdateContactParams) WithEmail ¶
func (o *UpdateContactParams) WithEmail(email string) *UpdateContactParams
WithEmail adds the email to the update contact params
func (*UpdateContactParams) WithHTTPClient ¶
func (o *UpdateContactParams) WithHTTPClient(client *http.Client) *UpdateContactParams
WithHTTPClient adds the HTTPClient to the update contact params
func (*UpdateContactParams) WithTimeout ¶
func (o *UpdateContactParams) WithTimeout(timeout time.Duration) *UpdateContactParams
WithTimeout adds the timeout to the update contact params
func (*UpdateContactParams) WithUpdateContact ¶
func (o *UpdateContactParams) WithUpdateContact(updateContact *models.UpdateContact) *UpdateContactParams
WithUpdateContact adds the updateContact to the update contact params
func (*UpdateContactParams) WriteToRequest ¶
func (o *UpdateContactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateContactReader ¶
type UpdateContactReader struct {
// contains filtered or unexported fields
}
UpdateContactReader is a Reader for the UpdateContact structure.
func (*UpdateContactReader) ReadResponse ¶
func (o *UpdateContactReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- contacts_client.go
- create_contact_parameters.go
- create_contact_responses.go
- get_contact_info_parameters.go
- get_contact_info_responses.go
- get_contact_stats_parameters.go
- get_contact_stats_responses.go
- get_contacts_parameters.go
- get_contacts_responses.go
- import_contacts_parameters.go
- import_contacts_responses.go
- request_contact_export_parameters.go
- request_contact_export_responses.go
- update_contact_parameters.go
- update_contact_responses.go