Documentation
¶
Index ¶
- type ActivateTemplateVersionParam
- func (params *ActivateTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *ActivateTemplateVersionParam
- func (params *ActivateTemplateVersionParam) SetTemplateId(TemplateId string) *ActivateTemplateVersionParam
- func (params *ActivateTemplateVersionParam) SetVersionId(VersionId string) *ActivateTemplateVersionParam
- type Active
- type Active1
- type ApiService
- func (c *ApiService) ActivateTemplateVersion(params *ActivateTemplateVersionParam) (interface{}, error)
- func (c *ApiService) CreateTemplate(params *CreateTemplateParam) (interface{}, error)
- func (c *ApiService) CreateTemplateVersion(params *CreateTemplateVersionParam) (interface{}, error)
- func (c *ApiService) DeleteTemplate(params *DeleteTemplateParam) (interface{}, error)
- func (c *ApiService) DeleteTemplateVersion(params *DeleteTemplateVersionParam) (interface{}, error)
- func (c *ApiService) DuplicateTemplate(params *DuplicateTemplateParam) (interface{}, error)
- func (c *ApiService) GetTemplate(params *GetTemplateParam) (interface{}, error)
- func (c *ApiService) GetTemplateVersion(params *GetTemplateVersionParam) (interface{}, error)
- func (c *ApiService) ListTemplate(params *ListTemplateParam) (interface{}, error)
- func (c *ApiService) UpdateTemplate(params *UpdateTemplateParam) (interface{}, error)
- func (c *ApiService) UpdateTemplateVersion(params *UpdateTemplateVersionParam) (interface{}, error)
- type CreateTemplateParam
- type CreateTemplateRequest
- type CreateTemplateVersionParam
- func (params *CreateTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *CreateTemplateVersionParam
- func (params *CreateTemplateVersionParam) SetTemplateId(TemplateId string) *CreateTemplateVersionParam
- func (params *CreateTemplateVersionParam) SetTransactionalTemplateVersionCreate(TransactionalTemplateVersionCreate TransactionalTemplateVersionCreate) *CreateTemplateVersionParam
- type DeleteTemplateParam
- type DeleteTemplateVersionParam
- func (params *DeleteTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *DeleteTemplateVersionParam
- func (params *DeleteTemplateVersionParam) SetTemplateId(TemplateId string) *DeleteTemplateVersionParam
- func (params *DeleteTemplateVersionParam) SetVersionId(VersionId string) *DeleteTemplateVersionParam
- type DuplicateTemplateParam
- func (params *DuplicateTemplateParam) SetDuplicateTemplateRequest(DuplicateTemplateRequest DuplicateTemplateRequest) *DuplicateTemplateParam
- func (params *DuplicateTemplateParam) SetOnbehalfof(Onbehalfof string) *DuplicateTemplateParam
- func (params *DuplicateTemplateParam) SetTemplateId(TemplateId string) *DuplicateTemplateParam
- type DuplicateTemplateRequest
- type Editor
- type Editor1
- type Generation
- type Generation1
- type Generations
- type GetTemplateParam
- type GetTemplateVersionParam
- type ListTemplate200Response
- type ListTemplate400Response
- type ListTemplate400ResponseErrorsInner
- type ListTemplateParam
- func (params *ListTemplateParam) SetGenerations(Generations Generations) *ListTemplateParam
- func (params *ListTemplateParam) SetOnbehalfof(Onbehalfof string) *ListTemplateParam
- func (params *ListTemplateParam) SetPageSize(PageSize float32) *ListTemplateParam
- func (params *ListTemplateParam) SetPageToken(PageToken string) *ListTemplateParam
- type Metadata
- type TransactionalTemplate
- type TransactionalTemplateVersionCreate
- type TransactionalTemplateVersionOutput
- type TransactionalTemplateWarning
- type TransactionalTemplatesTemplateLean
- type TransactionalTemplatesVersionOutputLean
- type UpdateTemplateParam
- func (params *UpdateTemplateParam) SetOnbehalfof(Onbehalfof string) *UpdateTemplateParam
- func (params *UpdateTemplateParam) SetTemplateId(TemplateId string) *UpdateTemplateParam
- func (params *UpdateTemplateParam) SetUpdateTemplateRequest(UpdateTemplateRequest UpdateTemplateRequest) *UpdateTemplateParam
- type UpdateTemplateRequest
- type UpdateTemplateVersionParam
- func (params *UpdateTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *UpdateTemplateVersionParam
- func (params *UpdateTemplateVersionParam) SetTemplateId(TemplateId string) *UpdateTemplateVersionParam
- func (params *UpdateTemplateVersionParam) SetTransactionalTemplateVersionCreate(TransactionalTemplateVersionCreate TransactionalTemplateVersionCreate) *UpdateTemplateVersionParam
- func (params *UpdateTemplateVersionParam) SetVersionId(VersionId string) *UpdateTemplateVersionParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateTemplateVersionParam ¶
type ActivateTemplateVersionParam struct { // The ID of the original template TemplateId *string `json:"template_id"` // The ID of the template version VersionId *string `json:"version_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` }
func (*ActivateTemplateVersionParam) SetOnbehalfof ¶
func (params *ActivateTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *ActivateTemplateVersionParam
func (*ActivateTemplateVersionParam) SetTemplateId ¶
func (params *ActivateTemplateVersionParam) SetTemplateId(TemplateId string) *ActivateTemplateVersionParam
func (*ActivateTemplateVersionParam) SetVersionId ¶
func (params *ActivateTemplateVersionParam) SetVersionId(VersionId string) *ActivateTemplateVersionParam
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶
func NewApiService(requestHandler *sendgrid.RequestHandler) *ApiService
func NewApiServiceWithClient ¶
func NewApiServiceWithClient(client sendgrid.BaseClient) *ApiService
func (*ApiService) ActivateTemplateVersion ¶
func (c *ApiService) ActivateTemplateVersion(params *ActivateTemplateVersionParam) (interface{}, error)
**This endpoint allows you to activate a version of one of your templates.**
func (*ApiService) CreateTemplate ¶
func (c *ApiService) CreateTemplate(params *CreateTemplateParam) (interface{}, error)
**This endpoint allows you to create a transactional template.**
func (*ApiService) CreateTemplateVersion ¶
func (c *ApiService) CreateTemplateVersion(params *CreateTemplateVersionParam) (interface{}, error)
**This endpoint allows you to create a new version of a template.**
func (*ApiService) DeleteTemplate ¶
func (c *ApiService) DeleteTemplate(params *DeleteTemplateParam) (interface{}, error)
**This endpoint allows you to delete a transactional template.**
func (*ApiService) DeleteTemplateVersion ¶
func (c *ApiService) DeleteTemplateVersion(params *DeleteTemplateVersionParam) (interface{}, error)
**This endpoint allows you to delete a transactional template version.**
func (*ApiService) DuplicateTemplate ¶
func (c *ApiService) DuplicateTemplate(params *DuplicateTemplateParam) (interface{}, error)
**This endpoint allows you to duplicate a transactional template.**
func (*ApiService) GetTemplate ¶
func (c *ApiService) GetTemplate(params *GetTemplateParam) (interface{}, error)
**This endpoint allows you to retrieve a single transactional template.**
func (*ApiService) GetTemplateVersion ¶
func (c *ApiService) GetTemplateVersion(params *GetTemplateVersionParam) (interface{}, error)
**This endpoint allows you to retrieve a specific version of a template.**
func (*ApiService) ListTemplate ¶
func (c *ApiService) ListTemplate(params *ListTemplateParam) (interface{}, error)
**This endpoint allows you to retrieve all transactional templates.**
func (*ApiService) UpdateTemplate ¶
func (c *ApiService) UpdateTemplate(params *UpdateTemplateParam) (interface{}, error)
**This endpoint allows you to edit the name of a transactional template.** To edit the template itself, [create a new transactional template version](https://docs.sendgrid.com/api-reference/transactional-templates-versions/create-a-new-transactional-template-version).
func (*ApiService) UpdateTemplateVersion ¶
func (c *ApiService) UpdateTemplateVersion(params *UpdateTemplateVersionParam) (interface{}, error)
**This endpoint allows you to edit the content of your template version.**
type CreateTemplateParam ¶
type CreateTemplateParam struct { // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` // CreateTemplateRequest *CreateTemplateRequest `json:"CreateTemplateRequest,omitempty"` }
func (*CreateTemplateParam) SetCreateTemplateRequest ¶
func (params *CreateTemplateParam) SetCreateTemplateRequest(CreateTemplateRequest CreateTemplateRequest) *CreateTemplateParam
func (*CreateTemplateParam) SetOnbehalfof ¶
func (params *CreateTemplateParam) SetOnbehalfof(Onbehalfof string) *CreateTemplateParam
type CreateTemplateRequest ¶
type CreateTemplateRequest struct { // The name for the new transactional template. Name string `json:"name"` // Defines whether the template supports dynamic replacement. Generation *Generation `json:"generation,omitempty"` }
CreateTemplateRequest struct for CreateTemplateRequest
type CreateTemplateVersionParam ¶
type CreateTemplateVersionParam struct { // TemplateId *string `json:"template_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` // TransactionalTemplateVersionCreate *TransactionalTemplateVersionCreate `json:"TransactionalTemplateVersionCreate,omitempty"` }
func (*CreateTemplateVersionParam) SetOnbehalfof ¶
func (params *CreateTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *CreateTemplateVersionParam
func (*CreateTemplateVersionParam) SetTemplateId ¶
func (params *CreateTemplateVersionParam) SetTemplateId(TemplateId string) *CreateTemplateVersionParam
func (*CreateTemplateVersionParam) SetTransactionalTemplateVersionCreate ¶
func (params *CreateTemplateVersionParam) SetTransactionalTemplateVersionCreate(TransactionalTemplateVersionCreate TransactionalTemplateVersionCreate) *CreateTemplateVersionParam
type DeleteTemplateParam ¶
type DeleteTemplateParam struct { // TemplateId *string `json:"template_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` }
func (*DeleteTemplateParam) SetOnbehalfof ¶
func (params *DeleteTemplateParam) SetOnbehalfof(Onbehalfof string) *DeleteTemplateParam
func (*DeleteTemplateParam) SetTemplateId ¶
func (params *DeleteTemplateParam) SetTemplateId(TemplateId string) *DeleteTemplateParam
type DeleteTemplateVersionParam ¶
type DeleteTemplateVersionParam struct { // The ID of the original template TemplateId *string `json:"template_id"` // The ID of the template version VersionId *string `json:"version_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` }
func (*DeleteTemplateVersionParam) SetOnbehalfof ¶
func (params *DeleteTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *DeleteTemplateVersionParam
func (*DeleteTemplateVersionParam) SetTemplateId ¶
func (params *DeleteTemplateVersionParam) SetTemplateId(TemplateId string) *DeleteTemplateVersionParam
func (*DeleteTemplateVersionParam) SetVersionId ¶
func (params *DeleteTemplateVersionParam) SetVersionId(VersionId string) *DeleteTemplateVersionParam
type DuplicateTemplateParam ¶
type DuplicateTemplateParam struct { // TemplateId *string `json:"template_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` // DuplicateTemplateRequest *DuplicateTemplateRequest `json:"DuplicateTemplateRequest,omitempty"` }
func (*DuplicateTemplateParam) SetDuplicateTemplateRequest ¶
func (params *DuplicateTemplateParam) SetDuplicateTemplateRequest(DuplicateTemplateRequest DuplicateTemplateRequest) *DuplicateTemplateParam
func (*DuplicateTemplateParam) SetOnbehalfof ¶
func (params *DuplicateTemplateParam) SetOnbehalfof(Onbehalfof string) *DuplicateTemplateParam
func (*DuplicateTemplateParam) SetTemplateId ¶
func (params *DuplicateTemplateParam) SetTemplateId(TemplateId string) *DuplicateTemplateParam
type DuplicateTemplateRequest ¶
type DuplicateTemplateRequest struct { // The name for the new transactional template. Name *string `json:"name,omitempty"` }
DuplicateTemplateRequest struct for DuplicateTemplateRequest
type Generation ¶
type Generation string
Generation the model 'Generation'
const ( GENERATION_LEGACY Generation = "legacy" GENERATION_DYNAMIC Generation = "dynamic" )
List of Generation
type Generation1 ¶
type Generation1 string
Generation1 the model 'Generation1'
const ( GENERATION1_LEGACY Generation1 = "legacy" GENERATION1_DYNAMIC Generation1 = "dynamic" )
List of Generation1
type Generations ¶
type Generations string
Generations the model 'Generations'
const ( GENERATIONS_LEGACY Generations = "legacy" GENERATIONS_DYNAMIC Generations = "dynamic" GENERATIONS_LEGACYDYNAMIC Generations = "legacy,dynamic" )
List of Generations
type GetTemplateParam ¶
type GetTemplateParam struct { // TemplateId *string `json:"template_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` }
func (*GetTemplateParam) SetOnbehalfof ¶
func (params *GetTemplateParam) SetOnbehalfof(Onbehalfof string) *GetTemplateParam
func (*GetTemplateParam) SetTemplateId ¶
func (params *GetTemplateParam) SetTemplateId(TemplateId string) *GetTemplateParam
type GetTemplateVersionParam ¶
type GetTemplateVersionParam struct { // The ID of the original template TemplateId *string `json:"template_id"` // The ID of the template version VersionId *string `json:"version_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` }
func (*GetTemplateVersionParam) SetOnbehalfof ¶
func (params *GetTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *GetTemplateVersionParam
func (*GetTemplateVersionParam) SetTemplateId ¶
func (params *GetTemplateVersionParam) SetTemplateId(TemplateId string) *GetTemplateVersionParam
func (*GetTemplateVersionParam) SetVersionId ¶
func (params *GetTemplateVersionParam) SetVersionId(VersionId string) *GetTemplateVersionParam
type ListTemplate200Response ¶
type ListTemplate200Response struct { // Result *[]TransactionalTemplatesTemplateLean `json:"result,omitempty"` Metadata *Metadata `json:"_metadata,omitempty"` }
ListTemplate200Response struct for ListTemplate200Response
type ListTemplate400Response ¶
type ListTemplate400Response struct {
Errors *[]ListTemplate400ResponseErrorsInner `json:"errors,omitempty"`
}
ListTemplate400Response struct for ListTemplate400Response
type ListTemplate400ResponseErrorsInner ¶
type ListTemplate400ResponseErrorsInner struct { Message *string `json:"message,omitempty"` ErrorId *string `json:"error_id,omitempty"` }
ListTemplate400ResponseErrorsInner struct for ListTemplate400ResponseErrorsInner
type ListTemplateParam ¶
type ListTemplateParam struct { // The number of templates to be returned in each page of results PageSize *float32 `json:"page_size"` // Comma-delimited list specifying which generations of templates to return. Options are `legacy`, `dynamic` or `legacy,dynamic`. Generations *Generations `json:"generations,omitempty"` // A token corresponding to a specific page of results, as provided by metadata PageToken *string `json:"page_token,omitempty"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` }
func (*ListTemplateParam) SetGenerations ¶
func (params *ListTemplateParam) SetGenerations(Generations Generations) *ListTemplateParam
func (*ListTemplateParam) SetOnbehalfof ¶
func (params *ListTemplateParam) SetOnbehalfof(Onbehalfof string) *ListTemplateParam
func (*ListTemplateParam) SetPageSize ¶
func (params *ListTemplateParam) SetPageSize(PageSize float32) *ListTemplateParam
func (*ListTemplateParam) SetPageToken ¶
func (params *ListTemplateParam) SetPageToken(PageToken string) *ListTemplateParam
type Metadata ¶
type Metadata struct { Prev *string `json:"prev,omitempty"` Self *string `json:"self,omitempty"` Next *string `json:"next,omitempty"` Count *int32 `json:"count,omitempty"` }
Metadata struct for Metadata
type TransactionalTemplate ¶
type TransactionalTemplate struct { // The ID of the transactional template. Id string `json:"id"` // The name for the transactional template. Name string `json:"name"` // Defines the generation of the template. Generation Generation1 `json:"generation"` // The date and time that this transactional template version was updated. UpdatedAt string `json:"updated_at"` // The different versions of this transactional template. Versions *[]TransactionalTemplatesVersionOutputLean `json:"versions,omitempty"` Warning *TransactionalTemplateWarning `json:"warning,omitempty"` }
TransactionalTemplate struct for TransactionalTemplate
type TransactionalTemplateVersionCreate ¶
type TransactionalTemplateVersionCreate struct { // Set the version as the active version associated with the template (0 is inactive, 1 is active). Only one version of a template can be active. The first version created for a template will automatically be set to Active. Active *Active `json:"active,omitempty"` // Name of the transactional template version. Name string `json:"name"` // The HTML content of the version. Maximum of 1048576 bytes allowed. HtmlContent *string `json:"html_content,omitempty"` // Text/plain content of the transactional template version. Maximum of 1048576 bytes allowed. PlainContent *string `json:"plain_content,omitempty"` // If true, plain_content is always generated from html_content. If false, plain_content is not altered. GeneratePlainContent *bool `json:"generate_plain_content,omitempty"` // Subject of the new transactional template version. Subject string `json:"subject"` // The editor used in the UI. Editor *Editor `json:"editor,omitempty"` // For dynamic templates only, the mock json data that will be used for template preview and test sends. TestData *string `json:"test_data,omitempty"` }
TransactionalTemplateVersionCreate struct for TransactionalTemplateVersionCreate
type TransactionalTemplateVersionOutput ¶
type TransactionalTemplateVersionOutput struct { Warnings *[]TransactionalTemplateWarning `json:"warnings,omitempty"` // Set the version as the active version associated with the template. Only one version of a template can be active. The first version created for a template will automatically be set to Active. Active *Active1 `json:"active,omitempty"` // Name of the transactional template version. Name string `json:"name"` // The HTML content of the Design. HtmlContent *string `json:"html_content,omitempty"` // Plain text content of the Design. PlainContent *string `json:"plain_content,omitempty"` // If true, plain_content is always generated from html_content. If false, plain_content is not altered. GeneratePlainContent *bool `json:"generate_plain_content,omitempty"` // Subject of the new transactional template version. Subject string `json:"subject"` // The editor used in the UI. Editor *Editor1 `json:"editor,omitempty"` // For dynamic templates only, the mock json data that will be used for template preview and test sends. TestData *string `json:"test_data,omitempty"` // ID of the transactional template version. Id *string `json:"id,omitempty"` // ID of the transactional template. TemplateId *string `json:"template_id,omitempty"` // The date and time that this transactional template version was updated. UpdatedAt *string `json:"updated_at,omitempty"` // A Thumbnail preview of the template's html content. ThumbnailUrl *string `json:"thumbnail_url,omitempty"` }
TransactionalTemplateVersionOutput struct for TransactionalTemplateVersionOutput
type TransactionalTemplateWarning ¶
type TransactionalTemplateWarning struct { // Warning message for the user Message *string `json:"message,omitempty"` }
TransactionalTemplateWarning struct for TransactionalTemplateWarning
type TransactionalTemplatesTemplateLean ¶
type TransactionalTemplatesTemplateLean struct { // The ID of the transactional template. Id string `json:"id"` // The name for the transactional template. Name string `json:"name"` // Defines the generation of the template. Generation Generation1 `json:"generation"` // The date and time that this transactional template version was updated. UpdatedAt string `json:"updated_at"` // The different versions of this transactional template. Versions *[]TransactionalTemplatesVersionOutputLean `json:"versions,omitempty"` }
TransactionalTemplatesTemplateLean struct for TransactionalTemplatesTemplateLean
type TransactionalTemplatesVersionOutputLean ¶
type TransactionalTemplatesVersionOutputLean struct { // ID of the transactional template version. Id *string `json:"id,omitempty"` // ID of the transactional template. TemplateId *string `json:"template_id,omitempty"` // Set the version as the active version associated with the template. Only one version of a template can be active. The first version created for a template will automatically be set to Active. Active *Active1 `json:"active,omitempty"` // Name of the transactional template version. Name *string `json:"name,omitempty"` // Subject of the new transactional template version. Subject *string `json:"subject,omitempty"` // The date and time that this transactional template version was updated. UpdatedAt *string `json:"updated_at,omitempty"` // If true, plain_content is always generated from html_content. If false, plain_content is not altered. GeneratePlainContent *bool `json:"generate_plain_content,omitempty"` // The HTML content of the Design. HtmlContent *string `json:"html_content,omitempty"` // Plain text content of the Design. PlainContent *string `json:"plain_content,omitempty"` // The editor used in the UI. Editor *Editor1 `json:"editor,omitempty"` // A Thumbnail preview of the template's html content. ThumbnailUrl *string `json:"thumbnail_url,omitempty"` }
TransactionalTemplatesVersionOutputLean struct for TransactionalTemplatesVersionOutputLean
type UpdateTemplateParam ¶
type UpdateTemplateParam struct { // TemplateId *string `json:"template_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` // UpdateTemplateRequest *UpdateTemplateRequest `json:"UpdateTemplateRequest,omitempty"` }
func (*UpdateTemplateParam) SetOnbehalfof ¶
func (params *UpdateTemplateParam) SetOnbehalfof(Onbehalfof string) *UpdateTemplateParam
func (*UpdateTemplateParam) SetTemplateId ¶
func (params *UpdateTemplateParam) SetTemplateId(TemplateId string) *UpdateTemplateParam
func (*UpdateTemplateParam) SetUpdateTemplateRequest ¶
func (params *UpdateTemplateParam) SetUpdateTemplateRequest(UpdateTemplateRequest UpdateTemplateRequest) *UpdateTemplateParam
type UpdateTemplateRequest ¶
type UpdateTemplateRequest struct { // The name of the transactional template. Name *string `json:"name,omitempty"` }
UpdateTemplateRequest struct for UpdateTemplateRequest
type UpdateTemplateVersionParam ¶
type UpdateTemplateVersionParam struct { // The ID of the original template TemplateId *string `json:"template_id"` // The ID of the template version VersionId *string `json:"version_id"` // The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information. Onbehalfof *string `json:"on-behalf-of,omitempty"` // TransactionalTemplateVersionCreate *TransactionalTemplateVersionCreate `json:"TransactionalTemplateVersionCreate,omitempty"` }
func (*UpdateTemplateVersionParam) SetOnbehalfof ¶
func (params *UpdateTemplateVersionParam) SetOnbehalfof(Onbehalfof string) *UpdateTemplateVersionParam
func (*UpdateTemplateVersionParam) SetTemplateId ¶
func (params *UpdateTemplateVersionParam) SetTemplateId(TemplateId string) *UpdateTemplateVersionParam
func (*UpdateTemplateVersionParam) SetTransactionalTemplateVersionCreate ¶
func (params *UpdateTemplateVersionParam) SetTransactionalTemplateVersionCreate(TransactionalTemplateVersionCreate TransactionalTemplateVersionCreate) *UpdateTemplateVersionParam
func (*UpdateTemplateVersionParam) SetVersionId ¶
func (params *UpdateTemplateVersionParam) SetVersionId(VersionId string) *UpdateTemplateVersionParam
Source Files
¶
- api_activate_template_version.go
- api_create_template.go
- api_create_template_version.go
- api_delete_template.go
- api_delete_template_version.go
- api_duplicate_template.go
- api_get_template.go
- api_get_template_version.go
- api_list_template.go
- api_service.go
- api_update_template.go
- api_update_template_version.go
- model_active.go
- model_active1.go
- model_create_template_request.go
- model_duplicate_template_request.go
- model_editor.go
- model_editor1.go
- model_generation.go
- model_generation1.go
- model_generations.go
- model_list_template_200_response.go
- model_list_template_400_response.go
- model_list_template_400_response_errors_inner.go
- model_metadata.go
- model_transactional_template.go
- model_transactional_template_version_create.go
- model_transactional_template_version_output.go
- model_transactional_template_warning.go
- model_transactional_templates_template_lean.go
- model_transactional_templates_version_output_lean.go
- model_update_template_request.go