Documentation ¶
Index ¶
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) CreateContact(request *CreateContactRequest) (response *CreateContactResponse, err error)
- func (client *Client) CreateContactWithCallback(request *CreateContactRequest, ...) <-chan int
- func (client *Client) CreateContactWithChan(request *CreateContactRequest) (<-chan *CreateContactResponse, <-chan error)
- func (client *Client) CreateWebhook(request *CreateWebhookRequest) (response *CreateWebhookResponse, err error)
- func (client *Client) CreateWebhookWithCallback(request *CreateWebhookRequest, ...) <-chan int
- func (client *Client) CreateWebhookWithChan(request *CreateWebhookRequest) (<-chan *CreateWebhookResponse, <-chan error)
- func (client *Client) DeleteContact(request *DeleteContactRequest) (response *DeleteContactResponse, err error)
- func (client *Client) DeleteContactWithCallback(request *DeleteContactRequest, ...) <-chan int
- func (client *Client) DeleteContactWithChan(request *DeleteContactRequest) (<-chan *DeleteContactResponse, <-chan error)
- func (client *Client) DeleteWebhook(request *DeleteWebhookRequest) (response *DeleteWebhookResponse, err error)
- func (client *Client) DeleteWebhookWithCallback(request *DeleteWebhookRequest, ...) <-chan int
- func (client *Client) DeleteWebhookWithChan(request *DeleteWebhookRequest) (<-chan *DeleteWebhookResponse, <-chan error)
- func (client *Client) GetContact(request *GetContactRequest) (response *GetContactResponse, err error)
- func (client *Client) GetContactWithCallback(request *GetContactRequest, ...) <-chan int
- func (client *Client) GetContactWithChan(request *GetContactRequest) (<-chan *GetContactResponse, <-chan error)
- func (client *Client) GetSubscriptionItem(request *GetSubscriptionItemRequest) (response *GetSubscriptionItemResponse, err error)
- func (client *Client) GetSubscriptionItemDetail(request *GetSubscriptionItemDetailRequest) (response *GetSubscriptionItemDetailResponse, err error)
- func (client *Client) GetSubscriptionItemDetailWithCallback(request *GetSubscriptionItemDetailRequest, ...) <-chan int
- func (client *Client) GetSubscriptionItemDetailWithChan(request *GetSubscriptionItemDetailRequest) (<-chan *GetSubscriptionItemDetailResponse, <-chan error)
- func (client *Client) GetSubscriptionItemWithCallback(request *GetSubscriptionItemRequest, ...) <-chan int
- func (client *Client) GetSubscriptionItemWithChan(request *GetSubscriptionItemRequest) (<-chan *GetSubscriptionItemResponse, <-chan error)
- func (client *Client) GetWebhook(request *GetWebhookRequest) (response *GetWebhookResponse, err error)
- func (client *Client) GetWebhookWithCallback(request *GetWebhookRequest, ...) <-chan int
- func (client *Client) GetWebhookWithChan(request *GetWebhookRequest) (<-chan *GetWebhookResponse, <-chan error)
- func (client *Client) ListContacts(request *ListContactsRequest) (response *ListContactsResponse, err error)
- func (client *Client) ListContactsWithCallback(request *ListContactsRequest, ...) <-chan int
- func (client *Client) ListContactsWithChan(request *ListContactsRequest) (<-chan *ListContactsResponse, <-chan error)
- func (client *Client) ListSubscriptionItemGroupDetails(request *ListSubscriptionItemGroupDetailsRequest) (response *ListSubscriptionItemGroupDetailsResponse, err error)
- func (client *Client) ListSubscriptionItemGroupDetailsWithCallback(request *ListSubscriptionItemGroupDetailsRequest, ...) <-chan int
- func (client *Client) ListSubscriptionItemGroupDetailsWithChan(request *ListSubscriptionItemGroupDetailsRequest) (<-chan *ListSubscriptionItemGroupDetailsResponse, <-chan error)
- func (client *Client) ListSubscriptionItems(request *ListSubscriptionItemsRequest) (response *ListSubscriptionItemsResponse, err error)
- func (client *Client) ListSubscriptionItemsWithCallback(request *ListSubscriptionItemsRequest, ...) <-chan int
- func (client *Client) ListSubscriptionItemsWithChan(request *ListSubscriptionItemsRequest) (<-chan *ListSubscriptionItemsResponse, <-chan error)
- func (client *Client) ListWebhooks(request *ListWebhooksRequest) (response *ListWebhooksResponse, err error)
- func (client *Client) ListWebhooksWithCallback(request *ListWebhooksRequest, ...) <-chan int
- func (client *Client) ListWebhooksWithChan(request *ListWebhooksRequest) (<-chan *ListWebhooksResponse, <-chan error)
- func (client *Client) SendVerificationMessage(request *SendVerificationMessageRequest) (response *SendVerificationMessageResponse, err error)
- func (client *Client) SendVerificationMessageWithCallback(request *SendVerificationMessageRequest, ...) <-chan int
- func (client *Client) SendVerificationMessageWithChan(request *SendVerificationMessageRequest) (<-chan *SendVerificationMessageResponse, <-chan error)
- func (client *Client) UpdateContact(request *UpdateContactRequest) (response *UpdateContactResponse, err error)
- func (client *Client) UpdateContactWithCallback(request *UpdateContactRequest, ...) <-chan int
- func (client *Client) UpdateContactWithChan(request *UpdateContactRequest) (<-chan *UpdateContactResponse, <-chan error)
- func (client *Client) UpdateSubscriptionItem(request *UpdateSubscriptionItemRequest) (response *UpdateSubscriptionItemResponse, err error)
- func (client *Client) UpdateSubscriptionItemWithCallback(request *UpdateSubscriptionItemRequest, ...) <-chan int
- func (client *Client) UpdateSubscriptionItemWithChan(request *UpdateSubscriptionItemRequest) (<-chan *UpdateSubscriptionItemResponse, <-chan error)
- func (client *Client) UpdateWebhook(request *UpdateWebhookRequest) (response *UpdateWebhookResponse, err error)
- func (client *Client) UpdateWebhookWithCallback(request *UpdateWebhookRequest, ...) <-chan int
- func (client *Client) UpdateWebhookWithChan(request *UpdateWebhookRequest) (<-chan *UpdateWebhookResponse, <-chan error)
- type Contact
- type ContactIdsInGetSubscriptionItem
- type ContactIdsInListSubscriptionItems
- type ContactsInGetSubscriptionItemDetail
- type ContactsInListContacts
- type ContactsInListSubscriptionItemGroupDetails
- type CreateContactRequest
- type CreateContactResponse
- type CreateWebhookRequest
- type CreateWebhookResponse
- type DeleteContactRequest
- type DeleteContactResponse
- type DeleteWebhookRequest
- type DeleteWebhookResponse
- type GetContactRequest
- type GetContactResponse
- type GetSubscriptionItemDetailRequest
- type GetSubscriptionItemDetailResponse
- type GetSubscriptionItemRequest
- type GetSubscriptionItemResponse
- type GetWebhookRequest
- type GetWebhookResponse
- type ItemDetails
- type ListContactsRequest
- type ListContactsResponse
- type ListSubscriptionItemGroupDetailsRequest
- type ListSubscriptionItemGroupDetailsResponse
- type ListSubscriptionItemsRequest
- type ListSubscriptionItemsResponse
- type ListWebhooksRequest
- type ListWebhooksResponse
- type SendVerificationMessageRequest
- type SendVerificationMessageResponse
- type SubscriptionItem
- type SubscriptionItemDetail
- type SubscriptionItemGroupDetail
- type SubscriptionItemGroupDetails
- type SubscriptionItems
- type UpdateContactRequest
- type UpdateContactResponse
- type UpdateSubscriptionItemRequest
- type UpdateSubscriptionItemResponse
- type UpdateWebhookRequest
- type UpdateWebhookResponse
- type Webhook
- type WebhookIdsInGetSubscriptionItem
- type WebhookIdsInListSubscriptionItems
- type WebhooksInGetSubscriptionItemDetail
- type WebhooksInListSubscriptionItemGroupDetails
- type WebhooksInListWebhooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithProvider ¶
func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArnAndPolicy ¶
func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func (*Client) CreateContact ¶
func (client *Client) CreateContact(request *CreateContactRequest) (response *CreateContactResponse, err error)
CreateContact invokes the subscription.CreateContact API synchronously api document: https://help.aliyun.com/api/subscription/createcontact.html
func (*Client) CreateContactWithCallback ¶
func (client *Client) CreateContactWithCallback(request *CreateContactRequest, callback func(response *CreateContactResponse, err error)) <-chan int
CreateContactWithCallback invokes the subscription.CreateContact API asynchronously api document: https://help.aliyun.com/api/subscription/createcontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CreateContactWithChan ¶
func (client *Client) CreateContactWithChan(request *CreateContactRequest) (<-chan *CreateContactResponse, <-chan error)
CreateContactWithChan invokes the subscription.CreateContact API asynchronously api document: https://help.aliyun.com/api/subscription/createcontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CreateWebhook ¶
func (client *Client) CreateWebhook(request *CreateWebhookRequest) (response *CreateWebhookResponse, err error)
CreateWebhook invokes the subscription.CreateWebhook API synchronously api document: https://help.aliyun.com/api/subscription/createwebhook.html
func (*Client) CreateWebhookWithCallback ¶
func (client *Client) CreateWebhookWithCallback(request *CreateWebhookRequest, callback func(response *CreateWebhookResponse, err error)) <-chan int
CreateWebhookWithCallback invokes the subscription.CreateWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/createwebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CreateWebhookWithChan ¶
func (client *Client) CreateWebhookWithChan(request *CreateWebhookRequest) (<-chan *CreateWebhookResponse, <-chan error)
CreateWebhookWithChan invokes the subscription.CreateWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/createwebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteContact ¶
func (client *Client) DeleteContact(request *DeleteContactRequest) (response *DeleteContactResponse, err error)
DeleteContact invokes the subscription.DeleteContact API synchronously api document: https://help.aliyun.com/api/subscription/deletecontact.html
func (*Client) DeleteContactWithCallback ¶
func (client *Client) DeleteContactWithCallback(request *DeleteContactRequest, callback func(response *DeleteContactResponse, err error)) <-chan int
DeleteContactWithCallback invokes the subscription.DeleteContact API asynchronously api document: https://help.aliyun.com/api/subscription/deletecontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteContactWithChan ¶
func (client *Client) DeleteContactWithChan(request *DeleteContactRequest) (<-chan *DeleteContactResponse, <-chan error)
DeleteContactWithChan invokes the subscription.DeleteContact API asynchronously api document: https://help.aliyun.com/api/subscription/deletecontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteWebhook ¶
func (client *Client) DeleteWebhook(request *DeleteWebhookRequest) (response *DeleteWebhookResponse, err error)
DeleteWebhook invokes the subscription.DeleteWebhook API synchronously api document: https://help.aliyun.com/api/subscription/deletewebhook.html
func (*Client) DeleteWebhookWithCallback ¶
func (client *Client) DeleteWebhookWithCallback(request *DeleteWebhookRequest, callback func(response *DeleteWebhookResponse, err error)) <-chan int
DeleteWebhookWithCallback invokes the subscription.DeleteWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/deletewebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteWebhookWithChan ¶
func (client *Client) DeleteWebhookWithChan(request *DeleteWebhookRequest) (<-chan *DeleteWebhookResponse, <-chan error)
DeleteWebhookWithChan invokes the subscription.DeleteWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/deletewebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetContact ¶
func (client *Client) GetContact(request *GetContactRequest) (response *GetContactResponse, err error)
GetContact invokes the subscription.GetContact API synchronously api document: https://help.aliyun.com/api/subscription/getcontact.html
func (*Client) GetContactWithCallback ¶
func (client *Client) GetContactWithCallback(request *GetContactRequest, callback func(response *GetContactResponse, err error)) <-chan int
GetContactWithCallback invokes the subscription.GetContact API asynchronously api document: https://help.aliyun.com/api/subscription/getcontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetContactWithChan ¶
func (client *Client) GetContactWithChan(request *GetContactRequest) (<-chan *GetContactResponse, <-chan error)
GetContactWithChan invokes the subscription.GetContact API asynchronously api document: https://help.aliyun.com/api/subscription/getcontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetSubscriptionItem ¶
func (client *Client) GetSubscriptionItem(request *GetSubscriptionItemRequest) (response *GetSubscriptionItemResponse, err error)
GetSubscriptionItem invokes the subscription.GetSubscriptionItem API synchronously api document: https://help.aliyun.com/api/subscription/getsubscriptionitem.html
func (*Client) GetSubscriptionItemDetail ¶
func (client *Client) GetSubscriptionItemDetail(request *GetSubscriptionItemDetailRequest) (response *GetSubscriptionItemDetailResponse, err error)
GetSubscriptionItemDetail invokes the subscription.GetSubscriptionItemDetail API synchronously api document: https://help.aliyun.com/api/subscription/getsubscriptionitemdetail.html
func (*Client) GetSubscriptionItemDetailWithCallback ¶
func (client *Client) GetSubscriptionItemDetailWithCallback(request *GetSubscriptionItemDetailRequest, callback func(response *GetSubscriptionItemDetailResponse, err error)) <-chan int
GetSubscriptionItemDetailWithCallback invokes the subscription.GetSubscriptionItemDetail API asynchronously api document: https://help.aliyun.com/api/subscription/getsubscriptionitemdetail.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetSubscriptionItemDetailWithChan ¶
func (client *Client) GetSubscriptionItemDetailWithChan(request *GetSubscriptionItemDetailRequest) (<-chan *GetSubscriptionItemDetailResponse, <-chan error)
GetSubscriptionItemDetailWithChan invokes the subscription.GetSubscriptionItemDetail API asynchronously api document: https://help.aliyun.com/api/subscription/getsubscriptionitemdetail.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetSubscriptionItemWithCallback ¶
func (client *Client) GetSubscriptionItemWithCallback(request *GetSubscriptionItemRequest, callback func(response *GetSubscriptionItemResponse, err error)) <-chan int
GetSubscriptionItemWithCallback invokes the subscription.GetSubscriptionItem API asynchronously api document: https://help.aliyun.com/api/subscription/getsubscriptionitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetSubscriptionItemWithChan ¶
func (client *Client) GetSubscriptionItemWithChan(request *GetSubscriptionItemRequest) (<-chan *GetSubscriptionItemResponse, <-chan error)
GetSubscriptionItemWithChan invokes the subscription.GetSubscriptionItem API asynchronously api document: https://help.aliyun.com/api/subscription/getsubscriptionitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetWebhook ¶
func (client *Client) GetWebhook(request *GetWebhookRequest) (response *GetWebhookResponse, err error)
GetWebhook invokes the subscription.GetWebhook API synchronously api document: https://help.aliyun.com/api/subscription/getwebhook.html
func (*Client) GetWebhookWithCallback ¶
func (client *Client) GetWebhookWithCallback(request *GetWebhookRequest, callback func(response *GetWebhookResponse, err error)) <-chan int
GetWebhookWithCallback invokes the subscription.GetWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/getwebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetWebhookWithChan ¶
func (client *Client) GetWebhookWithChan(request *GetWebhookRequest) (<-chan *GetWebhookResponse, <-chan error)
GetWebhookWithChan invokes the subscription.GetWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/getwebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListContacts ¶
func (client *Client) ListContacts(request *ListContactsRequest) (response *ListContactsResponse, err error)
ListContacts invokes the subscription.ListContacts API synchronously api document: https://help.aliyun.com/api/subscription/listcontacts.html
func (*Client) ListContactsWithCallback ¶
func (client *Client) ListContactsWithCallback(request *ListContactsRequest, callback func(response *ListContactsResponse, err error)) <-chan int
ListContactsWithCallback invokes the subscription.ListContacts API asynchronously api document: https://help.aliyun.com/api/subscription/listcontacts.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListContactsWithChan ¶
func (client *Client) ListContactsWithChan(request *ListContactsRequest) (<-chan *ListContactsResponse, <-chan error)
ListContactsWithChan invokes the subscription.ListContacts API asynchronously api document: https://help.aliyun.com/api/subscription/listcontacts.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListSubscriptionItemGroupDetails ¶
func (client *Client) ListSubscriptionItemGroupDetails(request *ListSubscriptionItemGroupDetailsRequest) (response *ListSubscriptionItemGroupDetailsResponse, err error)
ListSubscriptionItemGroupDetails invokes the subscription.ListSubscriptionItemGroupDetails API synchronously api document: https://help.aliyun.com/api/subscription/listsubscriptionitemgroupdetails.html
func (*Client) ListSubscriptionItemGroupDetailsWithCallback ¶
func (client *Client) ListSubscriptionItemGroupDetailsWithCallback(request *ListSubscriptionItemGroupDetailsRequest, callback func(response *ListSubscriptionItemGroupDetailsResponse, err error)) <-chan int
ListSubscriptionItemGroupDetailsWithCallback invokes the subscription.ListSubscriptionItemGroupDetails API asynchronously api document: https://help.aliyun.com/api/subscription/listsubscriptionitemgroupdetails.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListSubscriptionItemGroupDetailsWithChan ¶
func (client *Client) ListSubscriptionItemGroupDetailsWithChan(request *ListSubscriptionItemGroupDetailsRequest) (<-chan *ListSubscriptionItemGroupDetailsResponse, <-chan error)
ListSubscriptionItemGroupDetailsWithChan invokes the subscription.ListSubscriptionItemGroupDetails API asynchronously api document: https://help.aliyun.com/api/subscription/listsubscriptionitemgroupdetails.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListSubscriptionItems ¶
func (client *Client) ListSubscriptionItems(request *ListSubscriptionItemsRequest) (response *ListSubscriptionItemsResponse, err error)
ListSubscriptionItems invokes the subscription.ListSubscriptionItems API synchronously api document: https://help.aliyun.com/api/subscription/listsubscriptionitems.html
func (*Client) ListSubscriptionItemsWithCallback ¶
func (client *Client) ListSubscriptionItemsWithCallback(request *ListSubscriptionItemsRequest, callback func(response *ListSubscriptionItemsResponse, err error)) <-chan int
ListSubscriptionItemsWithCallback invokes the subscription.ListSubscriptionItems API asynchronously api document: https://help.aliyun.com/api/subscription/listsubscriptionitems.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListSubscriptionItemsWithChan ¶
func (client *Client) ListSubscriptionItemsWithChan(request *ListSubscriptionItemsRequest) (<-chan *ListSubscriptionItemsResponse, <-chan error)
ListSubscriptionItemsWithChan invokes the subscription.ListSubscriptionItems API asynchronously api document: https://help.aliyun.com/api/subscription/listsubscriptionitems.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListWebhooks ¶
func (client *Client) ListWebhooks(request *ListWebhooksRequest) (response *ListWebhooksResponse, err error)
ListWebhooks invokes the subscription.ListWebhooks API synchronously api document: https://help.aliyun.com/api/subscription/listwebhooks.html
func (*Client) ListWebhooksWithCallback ¶
func (client *Client) ListWebhooksWithCallback(request *ListWebhooksRequest, callback func(response *ListWebhooksResponse, err error)) <-chan int
ListWebhooksWithCallback invokes the subscription.ListWebhooks API asynchronously api document: https://help.aliyun.com/api/subscription/listwebhooks.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListWebhooksWithChan ¶
func (client *Client) ListWebhooksWithChan(request *ListWebhooksRequest) (<-chan *ListWebhooksResponse, <-chan error)
ListWebhooksWithChan invokes the subscription.ListWebhooks API asynchronously api document: https://help.aliyun.com/api/subscription/listwebhooks.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) SendVerificationMessage ¶
func (client *Client) SendVerificationMessage(request *SendVerificationMessageRequest) (response *SendVerificationMessageResponse, err error)
SendVerificationMessage invokes the subscription.SendVerificationMessage API synchronously api document: https://help.aliyun.com/api/subscription/sendverificationmessage.html
func (*Client) SendVerificationMessageWithCallback ¶
func (client *Client) SendVerificationMessageWithCallback(request *SendVerificationMessageRequest, callback func(response *SendVerificationMessageResponse, err error)) <-chan int
SendVerificationMessageWithCallback invokes the subscription.SendVerificationMessage API asynchronously api document: https://help.aliyun.com/api/subscription/sendverificationmessage.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) SendVerificationMessageWithChan ¶
func (client *Client) SendVerificationMessageWithChan(request *SendVerificationMessageRequest) (<-chan *SendVerificationMessageResponse, <-chan error)
SendVerificationMessageWithChan invokes the subscription.SendVerificationMessage API asynchronously api document: https://help.aliyun.com/api/subscription/sendverificationmessage.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateContact ¶
func (client *Client) UpdateContact(request *UpdateContactRequest) (response *UpdateContactResponse, err error)
UpdateContact invokes the subscription.UpdateContact API synchronously api document: https://help.aliyun.com/api/subscription/updatecontact.html
func (*Client) UpdateContactWithCallback ¶
func (client *Client) UpdateContactWithCallback(request *UpdateContactRequest, callback func(response *UpdateContactResponse, err error)) <-chan int
UpdateContactWithCallback invokes the subscription.UpdateContact API asynchronously api document: https://help.aliyun.com/api/subscription/updatecontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateContactWithChan ¶
func (client *Client) UpdateContactWithChan(request *UpdateContactRequest) (<-chan *UpdateContactResponse, <-chan error)
UpdateContactWithChan invokes the subscription.UpdateContact API asynchronously api document: https://help.aliyun.com/api/subscription/updatecontact.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateSubscriptionItem ¶
func (client *Client) UpdateSubscriptionItem(request *UpdateSubscriptionItemRequest) (response *UpdateSubscriptionItemResponse, err error)
UpdateSubscriptionItem invokes the subscription.UpdateSubscriptionItem API synchronously api document: https://help.aliyun.com/api/subscription/updatesubscriptionitem.html
func (*Client) UpdateSubscriptionItemWithCallback ¶
func (client *Client) UpdateSubscriptionItemWithCallback(request *UpdateSubscriptionItemRequest, callback func(response *UpdateSubscriptionItemResponse, err error)) <-chan int
UpdateSubscriptionItemWithCallback invokes the subscription.UpdateSubscriptionItem API asynchronously api document: https://help.aliyun.com/api/subscription/updatesubscriptionitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateSubscriptionItemWithChan ¶
func (client *Client) UpdateSubscriptionItemWithChan(request *UpdateSubscriptionItemRequest) (<-chan *UpdateSubscriptionItemResponse, <-chan error)
UpdateSubscriptionItemWithChan invokes the subscription.UpdateSubscriptionItem API asynchronously api document: https://help.aliyun.com/api/subscription/updatesubscriptionitem.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateWebhook ¶
func (client *Client) UpdateWebhook(request *UpdateWebhookRequest) (response *UpdateWebhookResponse, err error)
UpdateWebhook invokes the subscription.UpdateWebhook API synchronously api document: https://help.aliyun.com/api/subscription/updatewebhook.html
func (*Client) UpdateWebhookWithCallback ¶
func (client *Client) UpdateWebhookWithCallback(request *UpdateWebhookRequest, callback func(response *UpdateWebhookResponse, err error)) <-chan int
UpdateWebhookWithCallback invokes the subscription.UpdateWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/updatewebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateWebhookWithChan ¶
func (client *Client) UpdateWebhookWithChan(request *UpdateWebhookRequest) (<-chan *UpdateWebhookResponse, <-chan error)
UpdateWebhookWithChan invokes the subscription.UpdateWebhook API asynchronously api document: https://help.aliyun.com/api/subscription/updatewebhook.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type Contact ¶
type Contact struct { Name string `json:"Name" xml:"Name"` LastMobileVerificationTimeStamp int64 `json:"LastMobileVerificationTimeStamp" xml:"LastMobileVerificationTimeStamp"` IsObsolete bool `json:"IsObsolete" xml:"IsObsolete"` IsVerifiedMobile bool `json:"IsVerifiedMobile" xml:"IsVerifiedMobile"` Mobile string `json:"Mobile" xml:"Mobile"` Email string `json:"Email" xml:"Email"` IsAccount bool `json:"IsAccount" xml:"IsAccount"` LastEmailVerificationTimeStamp int64 `json:"LastEmailVerificationTimeStamp" xml:"LastEmailVerificationTimeStamp"` AccountUID int64 `json:"AccountUID" xml:"AccountUID"` Position string `json:"Position" xml:"Position"` IsVerifiedEmail bool `json:"IsVerifiedEmail" xml:"IsVerifiedEmail"` ContactId int64 `json:"ContactId" xml:"ContactId"` }
Contact is a nested struct in subscription response
type ContactIdsInGetSubscriptionItem ¶
type ContactIdsInGetSubscriptionItem struct {
ContactId []int64 `json:"ContactId" xml:"ContactId"`
}
ContactIdsInGetSubscriptionItem is a nested struct in subscription response
type ContactIdsInListSubscriptionItems ¶
type ContactIdsInListSubscriptionItems struct {
ContactId []int64 `json:"ContactId" xml:"ContactId"`
}
ContactIdsInListSubscriptionItems is a nested struct in subscription response
type ContactsInGetSubscriptionItemDetail ¶
type ContactsInGetSubscriptionItemDetail struct {
Contact []Contact `json:"Contact" xml:"Contact"`
}
ContactsInGetSubscriptionItemDetail is a nested struct in subscription response
type ContactsInListContacts ¶
type ContactsInListContacts struct {
Contact []Contact `json:"Contact" xml:"Contact"`
}
ContactsInListContacts is a nested struct in subscription response
type ContactsInListSubscriptionItemGroupDetails ¶
type ContactsInListSubscriptionItemGroupDetails struct {
Contact []Contact `json:"Contact" xml:"Contact"`
}
ContactsInListSubscriptionItemGroupDetails is a nested struct in subscription response
type CreateContactRequest ¶
type CreateContactRequest struct { *requests.RpcRequest ClientToken string `position:"Query" name:"ClientToken"` Mobile string `position:"Body" name:"Mobile"` Locale string `position:"Query" name:"Locale"` Name string `position:"Body" name:"Name"` Position string `position:"Body" name:"Position"` Email string `position:"Body" name:"Email"` }
CreateContactRequest is the request struct for api CreateContact
func CreateCreateContactRequest ¶
func CreateCreateContactRequest() (request *CreateContactRequest)
CreateCreateContactRequest creates a request to invoke CreateContact API
type CreateContactResponse ¶
type CreateContactResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` ContactId int64 `json:"ContactId" xml:"ContactId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` }
CreateContactResponse is the response struct for api CreateContact
func CreateCreateContactResponse ¶
func CreateCreateContactResponse() (response *CreateContactResponse)
CreateCreateContactResponse creates a response to parse from CreateContact response
type CreateWebhookRequest ¶
type CreateWebhookRequest struct { *requests.RpcRequest ClientToken string `position:"Query" name:"ClientToken"` Locale string `position:"Query" name:"Locale"` ServerUrl string `position:"Body" name:"ServerUrl"` Name string `position:"Body" name:"Name"` }
CreateWebhookRequest is the request struct for api CreateWebhook
func CreateCreateWebhookRequest ¶
func CreateCreateWebhookRequest() (request *CreateWebhookRequest)
CreateCreateWebhookRequest creates a request to invoke CreateWebhook API
type CreateWebhookResponse ¶
type CreateWebhookResponse struct { *responses.BaseResponse WebhookId int64 `json:"WebhookId" xml:"WebhookId"` Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` }
CreateWebhookResponse is the response struct for api CreateWebhook
func CreateCreateWebhookResponse ¶
func CreateCreateWebhookResponse() (response *CreateWebhookResponse)
CreateCreateWebhookResponse creates a response to parse from CreateWebhook response
type DeleteContactRequest ¶
type DeleteContactRequest struct { *requests.RpcRequest ContactId requests.Integer `position:"Body" name:"ContactId"` Locale string `position:"Query" name:"Locale"` }
DeleteContactRequest is the request struct for api DeleteContact
func CreateDeleteContactRequest ¶
func CreateDeleteContactRequest() (request *DeleteContactRequest)
CreateDeleteContactRequest creates a request to invoke DeleteContact API
type DeleteContactResponse ¶
type DeleteContactResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Result bool `json:"Result" xml:"Result"` }
DeleteContactResponse is the response struct for api DeleteContact
func CreateDeleteContactResponse ¶
func CreateDeleteContactResponse() (response *DeleteContactResponse)
CreateDeleteContactResponse creates a response to parse from DeleteContact response
type DeleteWebhookRequest ¶
type DeleteWebhookRequest struct { *requests.RpcRequest WebhookId requests.Integer `position:"Body" name:"WebhookId"` Locale string `position:"Query" name:"Locale"` }
DeleteWebhookRequest is the request struct for api DeleteWebhook
func CreateDeleteWebhookRequest ¶
func CreateDeleteWebhookRequest() (request *DeleteWebhookRequest)
CreateDeleteWebhookRequest creates a request to invoke DeleteWebhook API
type DeleteWebhookResponse ¶
type DeleteWebhookResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Result bool `json:"Result" xml:"Result"` }
DeleteWebhookResponse is the response struct for api DeleteWebhook
func CreateDeleteWebhookResponse ¶
func CreateDeleteWebhookResponse() (response *DeleteWebhookResponse)
CreateDeleteWebhookResponse creates a response to parse from DeleteWebhook response
type GetContactRequest ¶
type GetContactRequest struct { *requests.RpcRequest ContactId requests.Integer `position:"Query" name:"ContactId"` Locale string `position:"Query" name:"Locale"` }
GetContactRequest is the request struct for api GetContact
func CreateGetContactRequest ¶
func CreateGetContactRequest() (request *GetContactRequest)
CreateGetContactRequest creates a request to invoke GetContact API
type GetContactResponse ¶
type GetContactResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Message string `json:"Message" xml:"Message"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Contact Contact `json:"Contact" xml:"Contact"` }
GetContactResponse is the response struct for api GetContact
func CreateGetContactResponse ¶
func CreateGetContactResponse() (response *GetContactResponse)
CreateGetContactResponse creates a response to parse from GetContact response
type GetSubscriptionItemDetailRequest ¶
type GetSubscriptionItemDetailRequest struct { *requests.RpcRequest Locale string `position:"Query" name:"Locale"` ItemId requests.Integer `position:"Query" name:"ItemId"` }
GetSubscriptionItemDetailRequest is the request struct for api GetSubscriptionItemDetail
func CreateGetSubscriptionItemDetailRequest ¶
func CreateGetSubscriptionItemDetailRequest() (request *GetSubscriptionItemDetailRequest)
CreateGetSubscriptionItemDetailRequest creates a request to invoke GetSubscriptionItemDetail API
type GetSubscriptionItemDetailResponse ¶
type GetSubscriptionItemDetailResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` SubscriptionItemDetail SubscriptionItemDetail `json:"SubscriptionItemDetail" xml:"SubscriptionItemDetail"` }
GetSubscriptionItemDetailResponse is the response struct for api GetSubscriptionItemDetail
func CreateGetSubscriptionItemDetailResponse ¶
func CreateGetSubscriptionItemDetailResponse() (response *GetSubscriptionItemDetailResponse)
CreateGetSubscriptionItemDetailResponse creates a response to parse from GetSubscriptionItemDetail response
type GetSubscriptionItemRequest ¶
type GetSubscriptionItemRequest struct { *requests.RpcRequest Locale string `position:"Query" name:"Locale"` ItemId requests.Integer `position:"Query" name:"ItemId"` }
GetSubscriptionItemRequest is the request struct for api GetSubscriptionItem
func CreateGetSubscriptionItemRequest ¶
func CreateGetSubscriptionItemRequest() (request *GetSubscriptionItemRequest)
CreateGetSubscriptionItemRequest creates a request to invoke GetSubscriptionItem API
type GetSubscriptionItemResponse ¶
type GetSubscriptionItemResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Message string `json:"Message" xml:"Message"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` SubscriptionItem SubscriptionItem `json:"SubscriptionItem" xml:"SubscriptionItem"` }
GetSubscriptionItemResponse is the response struct for api GetSubscriptionItem
func CreateGetSubscriptionItemResponse ¶
func CreateGetSubscriptionItemResponse() (response *GetSubscriptionItemResponse)
CreateGetSubscriptionItemResponse creates a response to parse from GetSubscriptionItem response
type GetWebhookRequest ¶
type GetWebhookRequest struct { *requests.RpcRequest WebhookId requests.Integer `position:"Query" name:"WebhookId"` Locale string `position:"Query" name:"Locale"` }
GetWebhookRequest is the request struct for api GetWebhook
func CreateGetWebhookRequest ¶
func CreateGetWebhookRequest() (request *GetWebhookRequest)
CreateGetWebhookRequest creates a request to invoke GetWebhook API
type GetWebhookResponse ¶
type GetWebhookResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Webhook Webhook `json:"Webhook" xml:"Webhook"` }
GetWebhookResponse is the response struct for api GetWebhook
func CreateGetWebhookResponse ¶
func CreateGetWebhookResponse() (response *GetWebhookResponse)
CreateGetWebhookResponse creates a response to parse from GetWebhook response
type ItemDetails ¶
type ItemDetails struct {
SubscriptionItemDetail []SubscriptionItemDetail `json:"SubscriptionItemDetail" xml:"SubscriptionItemDetail"`
}
ItemDetails is a nested struct in subscription response
type ListContactsRequest ¶
type ListContactsRequest struct { *requests.RpcRequest ContactId requests.Integer `position:"Query" name:"ContactId"` Locale string `position:"Query" name:"Locale"` Filter string `position:"Query" name:"Filter"` NextToken string `position:"Query" name:"NextToken"` MaxResults requests.Integer `position:"Query" name:"MaxResults"` }
ListContactsRequest is the request struct for api ListContacts
func CreateListContactsRequest ¶
func CreateListContactsRequest() (request *ListContactsRequest)
CreateListContactsRequest creates a request to invoke ListContacts API
type ListContactsResponse ¶
type ListContactsResponse struct { *responses.BaseResponse TotalCount int `json:"TotalCount" xml:"TotalCount"` Message string `json:"Message" xml:"Message"` NextToken int `json:"NextToken" xml:"NextToken"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Contacts []Contact `json:"Contacts" xml:"Contacts"` }
ListContactsResponse is the response struct for api ListContacts
func CreateListContactsResponse ¶
func CreateListContactsResponse() (response *ListContactsResponse)
CreateListContactsResponse creates a response to parse from ListContacts response
type ListSubscriptionItemGroupDetailsRequest ¶
type ListSubscriptionItemGroupDetailsRequest struct { *requests.RpcRequest Locale string `position:"Query" name:"Locale"` }
ListSubscriptionItemGroupDetailsRequest is the request struct for api ListSubscriptionItemGroupDetails
func CreateListSubscriptionItemGroupDetailsRequest ¶
func CreateListSubscriptionItemGroupDetailsRequest() (request *ListSubscriptionItemGroupDetailsRequest)
CreateListSubscriptionItemGroupDetailsRequest creates a request to invoke ListSubscriptionItemGroupDetails API
type ListSubscriptionItemGroupDetailsResponse ¶
type ListSubscriptionItemGroupDetailsResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` SubscriptionItemGroupDetails []SubscriptionItemGroupDetail `json:"SubscriptionItemGroupDetails" xml:"SubscriptionItemGroupDetails"` }
ListSubscriptionItemGroupDetailsResponse is the response struct for api ListSubscriptionItemGroupDetails
func CreateListSubscriptionItemGroupDetailsResponse ¶
func CreateListSubscriptionItemGroupDetailsResponse() (response *ListSubscriptionItemGroupDetailsResponse)
CreateListSubscriptionItemGroupDetailsResponse creates a response to parse from ListSubscriptionItemGroupDetails response
type ListSubscriptionItemsRequest ¶
type ListSubscriptionItemsRequest struct { *requests.RpcRequest Locale string `position:"Query" name:"Locale"` Filter string `position:"Query" name:"Filter"` ItemId requests.Integer `position:"Query" name:"ItemId"` NextToken string `position:"Query" name:"NextToken"` MaxResults requests.Integer `position:"Query" name:"MaxResults"` }
ListSubscriptionItemsRequest is the request struct for api ListSubscriptionItems
func CreateListSubscriptionItemsRequest ¶
func CreateListSubscriptionItemsRequest() (request *ListSubscriptionItemsRequest)
CreateListSubscriptionItemsRequest creates a request to invoke ListSubscriptionItems API
type ListSubscriptionItemsResponse ¶
type ListSubscriptionItemsResponse struct { *responses.BaseResponse TotalCount int `json:"TotalCount" xml:"TotalCount"` Message string `json:"Message" xml:"Message"` NextToken int `json:"NextToken" xml:"NextToken"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` SubscriptionItems []SubscriptionItem `json:"SubscriptionItems" xml:"SubscriptionItems"` }
ListSubscriptionItemsResponse is the response struct for api ListSubscriptionItems
func CreateListSubscriptionItemsResponse ¶
func CreateListSubscriptionItemsResponse() (response *ListSubscriptionItemsResponse)
CreateListSubscriptionItemsResponse creates a response to parse from ListSubscriptionItems response
type ListWebhooksRequest ¶
type ListWebhooksRequest struct { *requests.RpcRequest WebhookId requests.Integer `position:"Query" name:"WebhookId"` Locale string `position:"Query" name:"Locale"` Filter string `position:"Query" name:"Filter"` NextToken string `position:"Query" name:"NextToken"` MaxResults requests.Integer `position:"Query" name:"MaxResults"` }
ListWebhooksRequest is the request struct for api ListWebhooks
func CreateListWebhooksRequest ¶
func CreateListWebhooksRequest() (request *ListWebhooksRequest)
CreateListWebhooksRequest creates a request to invoke ListWebhooks API
type ListWebhooksResponse ¶
type ListWebhooksResponse struct { *responses.BaseResponse TotalCount int `json:"TotalCount" xml:"TotalCount"` Message string `json:"Message" xml:"Message"` NextToken int `json:"NextToken" xml:"NextToken"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Webhooks []Webhook `json:"Webhooks" xml:"Webhooks"` }
ListWebhooksResponse is the response struct for api ListWebhooks
func CreateListWebhooksResponse ¶
func CreateListWebhooksResponse() (response *ListWebhooksResponse)
CreateListWebhooksResponse creates a response to parse from ListWebhooks response
type SendVerificationMessageRequest ¶
type SendVerificationMessageRequest struct { *requests.RpcRequest ContactId requests.Integer `position:"Query" name:"ContactId"` Type requests.Integer `position:"Query" name:"Type"` Locale string `position:"Query" name:"Locale"` }
SendVerificationMessageRequest is the request struct for api SendVerificationMessage
func CreateSendVerificationMessageRequest ¶
func CreateSendVerificationMessageRequest() (request *SendVerificationMessageRequest)
CreateSendVerificationMessageRequest creates a request to invoke SendVerificationMessage API
type SendVerificationMessageResponse ¶
type SendVerificationMessageResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Result int `json:"Result" xml:"Result"` }
SendVerificationMessageResponse is the response struct for api SendVerificationMessage
func CreateSendVerificationMessageResponse ¶
func CreateSendVerificationMessageResponse() (response *SendVerificationMessageResponse)
CreateSendVerificationMessageResponse creates a response to parse from SendVerificationMessage response
type SubscriptionItem ¶
type SubscriptionItem struct { PmsgStatus int `json:"PmsgStatus" xml:"PmsgStatus"` WebhookStatus int `json:"WebhookStatus" xml:"WebhookStatus"` SmsStatus int `json:"SmsStatus" xml:"SmsStatus"` Channel string `json:"Channel" xml:"Channel"` ItemId int `json:"ItemId" xml:"ItemId"` Description string `json:"Description" xml:"Description"` EmailStatus int `json:"EmailStatus" xml:"EmailStatus"` TtsStatus int `json:"TtsStatus" xml:"TtsStatus"` ItemName string `json:"ItemName" xml:"ItemName"` WebhookIds []int64 `json:"WebhookIds" xml:"WebhookIds"` ContactIds []int64 `json:"ContactIds" xml:"ContactIds"` }
SubscriptionItem is a nested struct in subscription response
type SubscriptionItemDetail ¶
type SubscriptionItemDetail struct { PmsgStatus int `json:"PmsgStatus" xml:"PmsgStatus"` WebhookStatus int `json:"WebhookStatus" xml:"WebhookStatus"` RegionId string `json:"RegionId" xml:"RegionId"` SmsStatus int `json:"SmsStatus" xml:"SmsStatus"` Channel string `json:"Channel" xml:"Channel"` ItemId int `json:"ItemId" xml:"ItemId"` Description string `json:"Description" xml:"Description"` EmailStatus int `json:"EmailStatus" xml:"EmailStatus"` TtsStatus int `json:"TtsStatus" xml:"TtsStatus"` ItemName string `json:"ItemName" xml:"ItemName"` Webhooks []Webhook `json:"Webhooks" xml:"Webhooks"` Contacts []Contact `json:"Contacts" xml:"Contacts"` }
SubscriptionItemDetail is a nested struct in subscription response
type SubscriptionItemGroupDetail ¶
type SubscriptionItemGroupDetail struct { ItemGroupName string `json:"ItemGroupName" xml:"ItemGroupName"` Description string `json:"Description" xml:"Description"` ItemGroupId int `json:"ItemGroupId" xml:"ItemGroupId"` ItemDetails []SubscriptionItemDetail `json:"ItemDetails" xml:"ItemDetails"` }
SubscriptionItemGroupDetail is a nested struct in subscription response
type SubscriptionItemGroupDetails ¶
type SubscriptionItemGroupDetails struct {
SubscriptionItemGroupDetail []SubscriptionItemGroupDetail `json:"SubscriptionItemGroupDetail" xml:"SubscriptionItemGroupDetail"`
}
SubscriptionItemGroupDetails is a nested struct in subscription response
type SubscriptionItems ¶
type SubscriptionItems struct {
SubscriptionItem []SubscriptionItem `json:"subscriptionItem" xml:"subscriptionItem"`
}
SubscriptionItems is a nested struct in subscription response
type UpdateContactRequest ¶
type UpdateContactRequest struct { *requests.RpcRequest ClientToken string `position:"Query" name:"ClientToken"` ContactId requests.Integer `position:"Body" name:"ContactId"` Mobile string `position:"Body" name:"Mobile"` Locale string `position:"Query" name:"Locale"` Name string `position:"Body" name:"Name"` Email string `position:"Body" name:"Email"` }
UpdateContactRequest is the request struct for api UpdateContact
func CreateUpdateContactRequest ¶
func CreateUpdateContactRequest() (request *UpdateContactRequest)
CreateUpdateContactRequest creates a request to invoke UpdateContact API
type UpdateContactResponse ¶
type UpdateContactResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Result bool `json:"Result" xml:"Result"` }
UpdateContactResponse is the response struct for api UpdateContact
func CreateUpdateContactResponse ¶
func CreateUpdateContactResponse() (response *UpdateContactResponse)
CreateUpdateContactResponse creates a response to parse from UpdateContact response
type UpdateSubscriptionItemRequest ¶
type UpdateSubscriptionItemRequest struct { *requests.RpcRequest ClientToken string `position:"Query" name:"ClientToken"` Locale string `position:"Query" name:"Locale"` ContactIds string `position:"Body" name:"ContactIds"` ItemId requests.Integer `position:"Body" name:"ItemId"` SmsStatus requests.Integer `position:"Body" name:"SmsStatus"` PmsgStatus requests.Integer `position:"Body" name:"PmsgStatus"` WebhookStatus requests.Integer `position:"Body" name:"WebhookStatus"` TtsStatus requests.Integer `position:"Body" name:"TtsStatus"` WebhookIds string `position:"Body" name:"WebhookIds"` EmailStatus requests.Integer `position:"Body" name:"EmailStatus"` }
UpdateSubscriptionItemRequest is the request struct for api UpdateSubscriptionItem
func CreateUpdateSubscriptionItemRequest ¶
func CreateUpdateSubscriptionItemRequest() (request *UpdateSubscriptionItemRequest)
CreateUpdateSubscriptionItemRequest creates a request to invoke UpdateSubscriptionItem API
type UpdateSubscriptionItemResponse ¶
type UpdateSubscriptionItemResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Message string `json:"Message" xml:"Message"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Result bool `json:"Result" xml:"Result"` }
UpdateSubscriptionItemResponse is the response struct for api UpdateSubscriptionItem
func CreateUpdateSubscriptionItemResponse ¶
func CreateUpdateSubscriptionItemResponse() (response *UpdateSubscriptionItemResponse)
CreateUpdateSubscriptionItemResponse creates a response to parse from UpdateSubscriptionItem response
type UpdateWebhookRequest ¶
type UpdateWebhookRequest struct { *requests.RpcRequest WebhookId requests.Integer `position:"Body" name:"WebhookId"` ClientToken string `position:"Query" name:"ClientToken"` Locale string `position:"Query" name:"Locale"` ServerUrl string `position:"Body" name:"ServerUrl"` Name string `position:"Body" name:"Name"` }
UpdateWebhookRequest is the request struct for api UpdateWebhook
func CreateUpdateWebhookRequest ¶
func CreateUpdateWebhookRequest() (request *UpdateWebhookRequest)
CreateUpdateWebhookRequest creates a request to invoke UpdateWebhook API
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct { *responses.BaseResponse Message string `json:"Message" xml:"Message"` RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Success bool `json:"Success" xml:"Success"` Result bool `json:"Result" xml:"Result"` }
UpdateWebhookResponse is the response struct for api UpdateWebhook
func CreateUpdateWebhookResponse ¶
func CreateUpdateWebhookResponse() (response *UpdateWebhookResponse)
CreateUpdateWebhookResponse creates a response to parse from UpdateWebhook response
type Webhook ¶
type Webhook struct { Name string `json:"Name" xml:"Name"` ServerUrl string `json:"ServerUrl" xml:"ServerUrl"` WebhookId int64 `json:"WebhookId" xml:"WebhookId"` }
Webhook is a nested struct in subscription response
type WebhookIdsInGetSubscriptionItem ¶
type WebhookIdsInGetSubscriptionItem struct {
WebhookId []int64 `json:"WebhookId" xml:"WebhookId"`
}
WebhookIdsInGetSubscriptionItem is a nested struct in subscription response
type WebhookIdsInListSubscriptionItems ¶
type WebhookIdsInListSubscriptionItems struct {
WebhookId []int64 `json:"webhookId" xml:"webhookId"`
}
WebhookIdsInListSubscriptionItems is a nested struct in subscription response
type WebhooksInGetSubscriptionItemDetail ¶
type WebhooksInGetSubscriptionItemDetail struct {
Webhook []Webhook `json:"Webhook" xml:"Webhook"`
}
WebhooksInGetSubscriptionItemDetail is a nested struct in subscription response
type WebhooksInListSubscriptionItemGroupDetails ¶
type WebhooksInListSubscriptionItemGroupDetails struct {
Webhook []Webhook `json:"Webhook" xml:"Webhook"`
}
WebhooksInListSubscriptionItemGroupDetails is a nested struct in subscription response
type WebhooksInListWebhooks ¶
type WebhooksInListWebhooks struct {
Webhook []Webhook `json:"Webhook" xml:"Webhook"`
}
WebhooksInListWebhooks is a nested struct in subscription response
Source Files ¶
- client.go
- create_contact.go
- create_webhook.go
- delete_contact.go
- delete_webhook.go
- get_contact.go
- get_subscription_item.go
- get_subscription_item_detail.go
- get_webhook.go
- list_contacts.go
- list_subscription_item_group_details.go
- list_subscription_items.go
- list_webhooks.go
- send_verification_message.go
- struct_contact.go
- struct_contact_ids_in_get_subscription_item.go
- struct_contact_ids_in_list_subscription_items.go
- struct_contacts_in_get_subscription_item_detail.go
- struct_contacts_in_list_contacts.go
- struct_contacts_in_list_subscription_item_group_details.go
- struct_item_details.go
- struct_subscription_item.go
- struct_subscription_item_detail.go
- struct_subscription_item_group_detail.go
- struct_subscription_item_group_details.go
- struct_subscription_items.go
- struct_webhook.go
- struct_webhook_ids_in_get_subscription_item.go
- struct_webhook_ids_in_list_subscription_items.go
- struct_webhooks_in_get_subscription_item_detail.go
- struct_webhooks_in_list_subscription_item_group_details.go
- struct_webhooks_in_list_webhooks.go
- update_contact.go
- update_subscription_item.go
- update_webhook.go