sens

package
v1.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package sens implements the Azure ARM Sens service API version 2019-10-23T06:20:43Z.

SENS Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Sens
	DefaultBaseURI = "https://sens.apigw.fin-ntruss.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AlimTalkMessageRequestParameter

type AlimTalkMessageRequestParameter struct {
	TemplateCode *string                                        `json:"templateCode,omitempty"`
	PlusFriendID *string                                        `json:"plusFriendId,omitempty"`
	Messages     *[]AlimTalkMessageRequestParameterMessagesItem `json:"messages,omitempty"`
	// ScheduleCode - 등록하려는 스케줄 코드
	ScheduleCode *string `json:"scheduleCode,omitempty"`
	// ReserveTime - 예약시간 (yyyy-MM-dd HH:mm)
	ReserveTime *string `json:"reserveTime,omitempty"`
	// ReserveTimeZone - 예약시간 타임존 (Area/Name. IANA time zone database) *default: Asia/Seoul
	ReserveTimeZone *string `json:"reserveTimeZone,omitempty"`
}

AlimTalkMessageRequestParameter ...

type AlimTalkMessageRequestParameterMessagesItem

type AlimTalkMessageRequestParameterMessagesItem struct {
	CountryCode *string                                                       `json:"countryCode,omitempty"`
	To          *string                                                       `json:"to,omitempty"`
	Content     *string                                                       `json:"content,omitempty"`
	Buttons     *[]AlimTalkMessageRequestParameterMessagesPropertiesItemsItem `json:"buttons,omitempty"`
}

AlimTalkMessageRequestParameterMessagesItem ...

type AlimTalkMessageRequestParameterMessagesPropertiesItemsItem added in v1.9.1

type AlimTalkMessageRequestParameterMessagesPropertiesItemsItem struct {
	Type          *string `json:"type,omitempty"`
	Name          *string `json:"name,omitempty"`
	LinkMobile    *string `json:"linkMobile,omitempty"`
	LinkPc        *string `json:"linkPc,omitempty"`
	SchemeIos     *string `json:"schemeIos,omitempty"`
	SchemeAndroid *string `json:"schemeAndroid,omitempty"`
}

AlimTalkMessageRequestParameterMessagesPropertiesItemsItem ...

type AlimTalkMessageResponseParameter

type AlimTalkMessageResponseParameter struct {
	autorest.Response `json:"-"`
	RequestID         *uuid.UUID                                      `json:"requestId,omitempty"`
	RequestTime       *string                                         `json:"requestTime,omitempty"`
	Messages          *[]AlimTalkMessageResponseParameterMessagesItem `json:"messages,omitempty"`
}

AlimTalkMessageResponseParameter ...

type AlimTalkMessageResponseParameterMessagesItem

type AlimTalkMessageResponseParameterMessagesItem struct {
	MessageID         *uuid.UUID `json:"messageId,omitempty"`
	RequestStatusCode *string    `json:"requestStatusCode,omitempty"`
	RequestStatusName *string    `json:"requestStatusName,omitempty"`
	RequestStatusDesc *string    `json:"requestStatusDesc,omitempty"`
}

AlimTalkMessageResponseParameterMessagesItem ...

type AlimTalkRequestResponseParameter

type AlimTalkRequestResponseParameter struct {
	autorest.Response `json:"-"`
	RequestID         *uuid.UUID                                      `json:"requestId,omitempty"`
	StatusCode        *string                                         `json:"statusCode,omitempty"`
	StatusName        *string                                         `json:"statusName,omitempty"`
	Messages          *[]AlimTalkRequestResponseParameterMessagesItem `json:"messages,omitempty"`
}

AlimTalkRequestResponseParameter ...

type AlimTalkRequestResponseParameterMessagesItem

type AlimTalkRequestResponseParameterMessagesItem struct {
	RequestTime       *string    `json:"requestTime,omitempty"`
	MessageID         *uuid.UUID `json:"messageId,omitempty"`
	CountryCode       *uuid.UUID `json:"countryCode,omitempty"`
	To                *uuid.UUID `json:"to,omitempty"`
	PlusFriendID      *uuid.UUID `json:"plusFriendId,omitempty"`
	TemplateCode      *uuid.UUID `json:"templateCode,omitempty"`
	RequestStatusCode *string    `json:"requestStatusCode,omitempty"`
	RequestStatusName *string    `json:"requestStatusName,omitempty"`
	RequestStatusDesc *string    `json:"requestStatusDesc,omitempty"`
	MessageStatusCode *string    `json:"messageStatusCode,omitempty"`
	MessageStatusName *string    `json:"messageStatusName,omitempty"`
	MessageStatusDesc *string    `json:"messageStatusDesc,omitempty"`
}

AlimTalkRequestResponseParameterMessagesItem ...

type AlimTalkResultResponseParameter

type AlimTalkResultResponseParameter struct {
	autorest.Response `json:"-"`
	MessageID         *uuid.UUID `json:"messageId,omitempty"`
	RequestID         *uuid.UUID `json:"requestId,omitempty"`
	RequestTime       *string    `json:"requestTime,omitempty"`
	CompleteTime      *string    `json:"completeTime,omitempty"`
	PlusFriendID      *string    `json:"plusFriendId,omitempty"`
	TemplateCode      *string    `json:"templateCode,omitempty"`
	CountryCode       *string    `json:"countryCode,omitempty"`
	To                *string    `json:"to,omitempty"`
	Content           *string    `json:"content,omitempty"`
	RequestStatusCode *string    `json:"requestStatusCode,omitempty"`
	RequestStatusName *string    `json:"requestStatusName,omitempty"`
	RequestStatusDesc *string    `json:"requestStatusDesc,omitempty"`
	MessageStatusCode *string    `json:"messageStatusCode,omitempty"`
	MessageStatusName *string    `json:"messageStatusName,omitempty"`
	MessageStatusDesc *string    `json:"messageStatusDesc,omitempty"`
}

AlimTalkResultResponseParameter ...

type AlimtalkClient

type AlimtalkClient struct {
	BaseClient
}

AlimtalkClient is the SENS Client

func NewAlimtalkClient

func NewAlimtalkClient() AlimtalkClient

NewAlimtalkClient creates an instance of the AlimtalkClient client.

func NewAlimtalkClientWithBaseURI

func NewAlimtalkClientWithBaseURI(baseURI string) AlimtalkClient

NewAlimtalkClientWithBaseURI creates an instance of the AlimtalkClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AlimtalkClient) Create

func (client AlimtalkClient) Create(ctx context.Context, serviceID string, request AlimTalkMessageRequestParameter) (result AlimTalkMessageResponseParameter, err error)

Create 알림톡 발송 요청 Parameters: serviceID - serviceId

func (AlimtalkClient) CreatePreparer

func (client AlimtalkClient) CreatePreparer(ctx context.Context, serviceID string, request AlimTalkMessageRequestParameter) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AlimtalkClient) CreateResponder

func (client AlimtalkClient) CreateResponder(resp *http.Response) (result AlimTalkMessageResponseParameter, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AlimtalkClient) CreateSender

func (client AlimtalkClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (AlimtalkClient) DeleteReservation

func (client AlimtalkClient) DeleteReservation(ctx context.Context, serviceID string, reserveID string) (result autorest.Response, err error)

DeleteReservation 예약 메시지 삭제 Parameters: serviceID - serviceId reserveID - reserveId

func (AlimtalkClient) DeleteReservationPreparer

func (client AlimtalkClient) DeleteReservationPreparer(ctx context.Context, serviceID string, reserveID string) (*http.Request, error)

DeleteReservationPreparer prepares the DeleteReservation request.

func (AlimtalkClient) DeleteReservationResponder

func (client AlimtalkClient) DeleteReservationResponder(resp *http.Response) (result autorest.Response, err error)

DeleteReservationResponder handles the response to the DeleteReservation request. The method always closes the http.Response Body.

func (AlimtalkClient) DeleteReservationSender

func (client AlimtalkClient) DeleteReservationSender(req *http.Request) (*http.Response, error)

DeleteReservationSender sends the DeleteReservation request. The method will close the http.Response Body if it receives an error.

func (AlimtalkClient) DeleteSchedule

func (client AlimtalkClient) DeleteSchedule(ctx context.Context, serviceID string, scheduleCode string, messageID string) (result autorest.Response, err error)

DeleteSchedule 스케쥴 메시지 삭제 Parameters: serviceID - serviceId scheduleCode - scheduleCode messageID - messageId

func (AlimtalkClient) DeleteSchedulePreparer

func (client AlimtalkClient) DeleteSchedulePreparer(ctx context.Context, serviceID string, scheduleCode string, messageID string) (*http.Request, error)

DeleteSchedulePreparer prepares the DeleteSchedule request.

func (AlimtalkClient) DeleteScheduleResponder

func (client AlimtalkClient) DeleteScheduleResponder(resp *http.Response) (result autorest.Response, err error)

DeleteScheduleResponder handles the response to the DeleteSchedule request. The method always closes the http.Response Body.

func (AlimtalkClient) DeleteScheduleSender

func (client AlimtalkClient) DeleteScheduleSender(req *http.Request) (*http.Response, error)

DeleteScheduleSender sends the DeleteSchedule request. The method will close the http.Response Body if it receives an error.

func (AlimtalkClient) GetRequest

func (client AlimtalkClient) GetRequest(ctx context.Context, serviceID string, requestID string) (result AlimTalkRequestResponseParameter, err error)

GetRequest 알림톡 발송 요청 조회 Parameters: serviceID - serviceId requestID - 요청 아이디

func (AlimtalkClient) GetRequestPreparer

func (client AlimtalkClient) GetRequestPreparer(ctx context.Context, serviceID string, requestID string) (*http.Request, error)

GetRequestPreparer prepares the GetRequest request.

func (AlimtalkClient) GetRequestResponder

func (client AlimtalkClient) GetRequestResponder(resp *http.Response) (result AlimTalkRequestResponseParameter, err error)

GetRequestResponder handles the response to the GetRequest request. The method always closes the http.Response Body.

func (AlimtalkClient) GetRequestSender

func (client AlimtalkClient) GetRequestSender(req *http.Request) (*http.Response, error)

GetRequestSender sends the GetRequest request. The method will close the http.Response Body if it receives an error.

func (AlimtalkClient) GetResult

func (client AlimtalkClient) GetResult(ctx context.Context, serviceID string, messageID string) (result AlimTalkResultResponseParameter, err error)

GetResult 알림톡 발송 결과 조회 Parameters: serviceID - serviceId messageID - messageId

func (AlimtalkClient) GetResultPreparer

func (client AlimtalkClient) GetResultPreparer(ctx context.Context, serviceID string, messageID string) (*http.Request, error)

GetResultPreparer prepares the GetResult request.

func (AlimtalkClient) GetResultResponder

func (client AlimtalkClient) GetResultResponder(resp *http.Response) (result AlimTalkResultResponseParameter, err error)

GetResultResponder handles the response to the GetResult request. The method always closes the http.Response Body.

func (AlimtalkClient) GetResultSender

func (client AlimtalkClient) GetResultSender(req *http.Request) (*http.Response, error)

GetResultSender sends the GetResult request. The method will close the http.Response Body if it receives an error.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string

	AccessKey string
	Secretkey string

	APIGatewayAPIKey string
}

BaseClient is the base client for Sens.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type ChannelClient

type ChannelClient struct {
	BaseClient
}

ChannelClient is the SENS Client

func NewChannelClient

func NewChannelClient() ChannelClient

NewChannelClient creates an instance of the ChannelClient client.

func NewChannelClientWithBaseURI

func NewChannelClientWithBaseURI(baseURI string) ChannelClient

NewChannelClientWithBaseURI creates an instance of the ChannelClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ChannelClient) AddUser

func (client ChannelClient) AddUser(ctx context.Context, serviceID string, channelName string, userID string) (result autorest.Response, err error)

AddUser 채널에 사용자 추가 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 channelName - 사용자를 추가할 채널명 userID - 디바이스 토큰 등록 시 바인딩한 사용자 아이디

func (ChannelClient) AddUserPreparer

func (client ChannelClient) AddUserPreparer(ctx context.Context, serviceID string, channelName string, userID string) (*http.Request, error)

AddUserPreparer prepares the AddUser request.

func (ChannelClient) AddUserResponder

func (client ChannelClient) AddUserResponder(resp *http.Response) (result autorest.Response, err error)

AddUserResponder handles the response to the AddUser request. The method always closes the http.Response Body.

func (ChannelClient) AddUserSender

func (client ChannelClient) AddUserSender(req *http.Request) (*http.Response, error)

AddUserSender sends the AddUser request. The method will close the http.Response Body if it receives an error.

func (ChannelClient) Create

func (client ChannelClient) Create(ctx context.Context, serviceID string, channel PushChannelRequestParameter) (result autorest.Response, err error)

Create 채널 생성 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 channel - 생성할 채널명

func (ChannelClient) CreatePreparer

func (client ChannelClient) CreatePreparer(ctx context.Context, serviceID string, channel PushChannelRequestParameter) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ChannelClient) CreateResponder

func (client ChannelClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ChannelClient) CreateSender

func (client ChannelClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ChannelClient) DeleteUser

func (client ChannelClient) DeleteUser(ctx context.Context, serviceID string, channelName string, userID string) (result autorest.Response, err error)

DeleteUser 채널에서 사용자 삭제 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 channelName - 사용자를 추가할 채널명 userID - 디바이스 토큰 등록 시 바인딩한 사용자 아이디

func (ChannelClient) DeleteUserPreparer

func (client ChannelClient) DeleteUserPreparer(ctx context.Context, serviceID string, channelName string, userID string) (*http.Request, error)

DeleteUserPreparer prepares the DeleteUser request.

func (ChannelClient) DeleteUserResponder

func (client ChannelClient) DeleteUserResponder(resp *http.Response) (result autorest.Response, err error)

DeleteUserResponder handles the response to the DeleteUser request. The method always closes the http.Response Body.

func (ChannelClient) DeleteUserSender

func (client ChannelClient) DeleteUserSender(req *http.Request) (*http.Response, error)

DeleteUserSender sends the DeleteUser request. The method will close the http.Response Body if it receives an error.

type DeviceClient

type DeviceClient struct {
	BaseClient
}

DeviceClient is the SENS Client

func NewDeviceClient

func NewDeviceClient() DeviceClient

NewDeviceClient creates an instance of the DeviceClient client.

func NewDeviceClientWithBaseURI

func NewDeviceClientWithBaseURI(baseURI string) DeviceClient

NewDeviceClientWithBaseURI creates an instance of the DeviceClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DeviceClient) Create

func (client DeviceClient) Create(ctx context.Context, serviceID string, parameter PushUserRequestParameter) (result autorest.Response, err error)

Create 디바이스 등록 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디

func (DeviceClient) CreatePreparer

func (client DeviceClient) CreatePreparer(ctx context.Context, serviceID string, parameter PushUserRequestParameter) (*http.Request, error)

CreatePreparer prepares the Create request.

func (DeviceClient) CreateResponder

func (client DeviceClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (DeviceClient) CreateSender

func (client DeviceClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (DeviceClient) Delete

func (client DeviceClient) Delete(ctx context.Context, serviceID string, userID string) (result autorest.Response, err error)

Delete 디바이스 삭제 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 userID - 사용자를 식별하는 아이디. 최대 128자

func (DeviceClient) DeletePreparer

func (client DeviceClient) DeletePreparer(ctx context.Context, serviceID string, userID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DeviceClient) DeleteResponder

func (client DeviceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DeviceClient) DeleteSender

func (client DeviceClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DeviceClient) Get

func (client DeviceClient) Get(ctx context.Context, serviceID string, userID string) (result PushUserResponseParameter, err error)

Get 디바이스 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 userID - 사용자를 식별하는 아이디. 최대 128자

func (DeviceClient) GetPreparer

func (client DeviceClient) GetPreparer(ctx context.Context, serviceID string, userID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DeviceClient) GetResponder

func (client DeviceClient) GetResponder(resp *http.Response) (result PushUserResponseParameter, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DeviceClient) GetSender

func (client DeviceClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type MessageClient

type MessageClient struct {
	BaseClient
}

MessageClient is the SENS Client

func NewMessageClient

func NewMessageClient() MessageClient

NewMessageClient creates an instance of the MessageClient client.

func NewMessageClientWithBaseURI

func NewMessageClientWithBaseURI(baseURI string) MessageClient

NewMessageClientWithBaseURI creates an instance of the MessageClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (MessageClient) Delete

func (client MessageClient) Delete(ctx context.Context, serviceID string, reserveID string) (result autorest.Response, err error)

Delete 예약 메시지 삭제 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 reserveID - 예약 발송 요청 조회시 반환되는 메시지 식별자

func (MessageClient) DeletePreparer

func (client MessageClient) DeletePreparer(ctx context.Context, serviceID string, reserveID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (MessageClient) DeleteResponder

func (client MessageClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (MessageClient) DeleteSender

func (client MessageClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (MessageClient) GetResult

func (client MessageClient) GetResult(ctx context.Context, serviceID string, requestID string) (result PushMessageResultResponseParameter, err error)

GetResult 메시지 결과 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 requestID - 메시지 발송시 반환되는 요청 식별자

func (MessageClient) GetResultPreparer

func (client MessageClient) GetResultPreparer(ctx context.Context, serviceID string, requestID string) (*http.Request, error)

GetResultPreparer prepares the GetResult request.

func (MessageClient) GetResultResponder

func (client MessageClient) GetResultResponder(resp *http.Response) (result PushMessageResultResponseParameter, err error)

GetResultResponder handles the response to the GetResult request. The method always closes the http.Response Body.

func (MessageClient) GetResultSender

func (client MessageClient) GetResultSender(req *http.Request) (*http.Response, error)

GetResultSender sends the GetResult request. The method will close the http.Response Body if it receives an error.

func (MessageClient) SendMethod added in v1.9.1

func (client MessageClient) SendMethod(ctx context.Context, serviceID string, parameter PushMessageRequestParameter) (result PushMessageResponseParameter, err error)

SendMethod 메시지 발송 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 parameter - 생성할 채널

func (MessageClient) SendMethodPreparer added in v1.9.1

func (client MessageClient) SendMethodPreparer(ctx context.Context, serviceID string, parameter PushMessageRequestParameter) (*http.Request, error)

SendMethodPreparer prepares the SendMethod request.

func (MessageClient) SendMethodResponder added in v1.9.1

func (client MessageClient) SendMethodResponder(resp *http.Response) (result PushMessageResponseParameter, err error)

SendMethodResponder handles the response to the SendMethod request. The method always closes the http.Response Body.

func (MessageClient) SendMethodSender added in v1.9.1

func (client MessageClient) SendMethodSender(req *http.Request) (*http.Response, error)

SendMethodSender sends the SendMethod request. The method will close the http.Response Body if it receives an error.

type PushChannelRequestParameter

type PushChannelRequestParameter struct {
	ChannelName *string `json:"channelName,omitempty"`
	ChannelDesc *string `json:"channelDesc,omitempty"`
}

PushChannelRequestParameter ...

type PushMessageRequestParameter

type PushMessageRequestParameter struct {
	Message *PushMessageRequestParameterMessage `json:"message,omitempty"`
	// MessageType - (NOTIF|AD)
	MessageType *string                            `json:"messageType,omitempty"`
	Target      *PushMessageRequestParameterTarget `json:"target,omitempty"`
	// ScheduleCode - 등록하려는 스케줄 코드
	ScheduleCode *string `json:"scheduleCode,omitempty"`
	// ReserveTime - 예약시간 (yyyy-MM-dd HH:mm)
	ReserveTime *string `json:"reserveTime,omitempty"`
	// ReserveTimeZone - 예약시간 타임존 (Area/Name. IANA time zone database) *default: Asia/Seoul
	ReserveTimeZone *string `json:"reserveTimeZone,omitempty"`
}

PushMessageRequestParameter ...

type PushMessageRequestParameterMessage

type PushMessageRequestParameterMessage struct {
	Apns    *PushMessageRequestParameterMessageApns    `json:"apns,omitempty"`
	Gcm     *PushMessageRequestParameterMessageGcm     `json:"gcm,omitempty"`
	Default *PushMessageRequestParameterMessageDefault `json:"default,omitempty"`
}

PushMessageRequestParameterMessage ...

type PushMessageRequestParameterMessageApns

type PushMessageRequestParameterMessageApns struct {
	Content *string                                     `json:"content,omitempty"`
	Custom  interface{}                                 `json:"custom,omitempty"`
	Option  interface{}                                 `json:"option,omitempty"`
	I18n    *PushMessageRequestParameterMessageApnsI18n `json:"i18n,omitempty"`
}

PushMessageRequestParameterMessageApns ...

type PushMessageRequestParameterMessageApnsI18n

type PushMessageRequestParameterMessageApnsI18n struct {
	Default *PushMessageRequestParameterMessageApnsI18nDefault `json:"default,omitempty"`
	// contains filtered or unexported fields
}

PushMessageRequestParameterMessageApnsI18n ...

type PushMessageRequestParameterMessageApnsI18nDefault

type PushMessageRequestParameterMessageApnsI18nDefault struct {
	Content *string `json:"content,omitempty"`
}

PushMessageRequestParameterMessageApnsI18nDefault ...

type PushMessageRequestParameterMessageApnsI18nlanguage

type PushMessageRequestParameterMessageApnsI18nlanguage struct {
	Content *string `json:"content,omitempty"`
}

PushMessageRequestParameterMessageApnsI18nlanguage [language]: ISO 639-1, 소문자

type PushMessageRequestParameterMessageDefault

type PushMessageRequestParameterMessageDefault struct {
	Content *string                                        `json:"content,omitempty"`
	Custom  interface{}                                    `json:"custom,omitempty"`
	Option  interface{}                                    `json:"option,omitempty"`
	I18n    *PushMessageRequestParameterMessageDefaultI18n `json:"i18n,omitempty"`
}

PushMessageRequestParameterMessageDefault ...

type PushMessageRequestParameterMessageDefaultI18n

type PushMessageRequestParameterMessageDefaultI18n struct {
	Default *PushMessageRequestParameterMessageDefaultI18nDefault `json:"default,omitempty"`
	// contains filtered or unexported fields
}

PushMessageRequestParameterMessageDefaultI18n ...

type PushMessageRequestParameterMessageDefaultI18nDefault

type PushMessageRequestParameterMessageDefaultI18nDefault struct {
	Content *string `json:"content,omitempty"`
}

PushMessageRequestParameterMessageDefaultI18nDefault ...

type PushMessageRequestParameterMessageDefaultI18nlanguage

type PushMessageRequestParameterMessageDefaultI18nlanguage struct {
	Content *string `json:"content,omitempty"`
}

PushMessageRequestParameterMessageDefaultI18nlanguage [language]: ISO 639-1, 소문자

type PushMessageRequestParameterMessageGcm

type PushMessageRequestParameterMessageGcm struct {
	Content *string                                    `json:"content,omitempty"`
	Custom  interface{}                                `json:"custom,omitempty"`
	Option  interface{}                                `json:"option,omitempty"`
	I18n    *PushMessageRequestParameterMessageGcmI18n `json:"i18n,omitempty"`
}

PushMessageRequestParameterMessageGcm ...

type PushMessageRequestParameterMessageGcmI18n

type PushMessageRequestParameterMessageGcmI18n struct {
	Default *PushMessageRequestParameterMessageGcmI18nDefault `json:"default,omitempty"`
	// contains filtered or unexported fields
}

PushMessageRequestParameterMessageGcmI18n ...

type PushMessageRequestParameterMessageGcmI18nDefault

type PushMessageRequestParameterMessageGcmI18nDefault struct {
	Content *string `json:"content,omitempty"`
}

PushMessageRequestParameterMessageGcmI18nDefault ...

type PushMessageRequestParameterMessageGcmI18nlanguage

type PushMessageRequestParameterMessageGcmI18nlanguage struct {
	Content *string `json:"content,omitempty"`
}

PushMessageRequestParameterMessageGcmI18nlanguage [language]: ISO 639-1, 소문자

type PushMessageRequestParameterTarget

type PushMessageRequestParameterTarget struct {
	// DeviceType - (APNS|GCM)
	DeviceType *string   `json:"deviceType,omitempty"`
	To         *[]string `json:"to,omitempty"`
	// Type - (all|channel|user)
	Type *string `json:"type,omitempty"`
	// Country - 국가코드 (ISO 3166-1 alpha-2, 대문자)
	Country *[]string `json:"country,omitempty"`
}

PushMessageRequestParameterTarget ...

type PushMessageResponseParameter

type PushMessageResponseParameter struct {
	autorest.Response `json:"-"`
	RequestID         *uuid.UUID `json:"requestId,omitempty"`
	RequestTime       *date.Time `json:"requestTime,omitempty"`
	// StatusCode - 202 - 요청성공<br>400 - bad request<br>401 - unauthorized<br>404 - not found<br>500 - internal server error
	StatusCode *string `json:"statusCode,omitempty"`
	// StatusName - (success|fail)
	StatusName    *string `json:"statusName,omitempty"`
	StatusMessage *string `json:"statusMessage,omitempty"`
	ErrorMessage  *string `json:"errorMessage,omitempty"`
}

PushMessageResponseParameter ...

type PushMessageResultResponseParameter

type PushMessageResultResponseParameter struct {
	autorest.Response `json:"-"`
	RequestID         *uuid.UUID `json:"requestId,omitempty"`
	RequestTime       *date.Time `json:"requestTime,omitempty"`
	// StatusCode - 202 - 요청성공<br>400 - bad request<br>401 - unauthorized<br>404 - not found<br>500 - internal server error
	StatusCode *string `json:"statusCode,omitempty"`
	// StatusName - (success|fail)
	StatusName    *string `json:"statusName,omitempty"`
	StatusMessage *string `json:"statusMessage,omitempty"`
	// MessageStatusCode - 200 - 발송성공<br>400 - bad request<br>404 - no targets<br>500 - internal server error
	MessageStatusCode *string `json:"messageStatusCode,omitempty"`
	// MessageStatusName - (success|processing|fail)
	MessageStatusName    *string                                    `json:"messageStatusName,omitempty"`
	MessageStatusMessage *string                                    `json:"messageStatusMessage,omitempty"`
	ErrorMessage         *string                                    `json:"errorMessage,omitempty"`
	CompleteTime         *date.Time                                 `json:"completeTime,omitempty"`
	TargetCount          *int32                                     `json:"targetCount,omitempty"`
	SentCount            *int32                                     `json:"sentCount,omitempty"`
	Message              *PushMessageResultResponseParameterMessage `json:"message,omitempty"`
	// MessageType - (NOTIF|AD)
	MessageType *string                                   `json:"messageType,omitempty"`
	Target      *PushMessageResultResponseParameterTarget `json:"target,omitempty"`
	// ScheduleCode - 스케줄 코드
	ScheduleCode *string `json:"scheduleCode,omitempty"`
}

PushMessageResultResponseParameter ...

type PushMessageResultResponseParameterMessage

type PushMessageResultResponseParameterMessage struct {
	Apns    *PushMessageResultResponseParameterMessageApns    `json:"apns,omitempty"`
	Gcm     *PushMessageResultResponseParameterMessageGcm     `json:"gcm,omitempty"`
	Default *PushMessageResultResponseParameterMessageDefault `json:"default,omitempty"`
}

PushMessageResultResponseParameterMessage ...

type PushMessageResultResponseParameterMessageApns

type PushMessageResultResponseParameterMessageApns struct {
	Content *string                                            `json:"content,omitempty"`
	Custom  interface{}                                        `json:"custom,omitempty"`
	Option  interface{}                                        `json:"option,omitempty"`
	I18n    *PushMessageResultResponseParameterMessageApnsI18n `json:"i18n,omitempty"`
}

PushMessageResultResponseParameterMessageApns ...

type PushMessageResultResponseParameterMessageApnsI18n

type PushMessageResultResponseParameterMessageApnsI18n struct {
	Default *PushMessageResultResponseParameterMessageApnsI18nDefault `json:"default,omitempty"`
	// contains filtered or unexported fields
}

PushMessageResultResponseParameterMessageApnsI18n ...

type PushMessageResultResponseParameterMessageApnsI18nDefault

type PushMessageResultResponseParameterMessageApnsI18nDefault struct {
	Content *string `json:"content,omitempty"`
}

PushMessageResultResponseParameterMessageApnsI18nDefault ...

type PushMessageResultResponseParameterMessageApnsI18nlanguage

type PushMessageResultResponseParameterMessageApnsI18nlanguage struct {
	Content *string `json:"content,omitempty"`
}

PushMessageResultResponseParameterMessageApnsI18nlanguage [language]: ISO 639-1, 소문자

type PushMessageResultResponseParameterMessageDefault

type PushMessageResultResponseParameterMessageDefault struct {
	Content *string                                               `json:"content,omitempty"`
	Custom  interface{}                                           `json:"custom,omitempty"`
	Option  interface{}                                           `json:"option,omitempty"`
	I18n    *PushMessageResultResponseParameterMessageDefaultI18n `json:"i18n,omitempty"`
}

PushMessageResultResponseParameterMessageDefault ...

type PushMessageResultResponseParameterMessageDefaultI18n

type PushMessageResultResponseParameterMessageDefaultI18n struct {
	Default *PushMessageResultResponseParameterMessageDefaultI18nDefault `json:"default,omitempty"`
	// contains filtered or unexported fields
}

PushMessageResultResponseParameterMessageDefaultI18n ...

type PushMessageResultResponseParameterMessageDefaultI18nDefault

type PushMessageResultResponseParameterMessageDefaultI18nDefault struct {
	Content *string `json:"content,omitempty"`
}

PushMessageResultResponseParameterMessageDefaultI18nDefault ...

type PushMessageResultResponseParameterMessageDefaultI18nlanguage

type PushMessageResultResponseParameterMessageDefaultI18nlanguage struct {
	Content *string `json:"content,omitempty"`
}

PushMessageResultResponseParameterMessageDefaultI18nlanguage [language]: ISO 639-1, 소문자

type PushMessageResultResponseParameterMessageGcm

type PushMessageResultResponseParameterMessageGcm struct {
	Content *string                                           `json:"content,omitempty"`
	Custom  interface{}                                       `json:"custom,omitempty"`
	Option  interface{}                                       `json:"option,omitempty"`
	I18n    *PushMessageResultResponseParameterMessageGcmI18n `json:"i18n,omitempty"`
}

PushMessageResultResponseParameterMessageGcm ...

type PushMessageResultResponseParameterMessageGcmI18n

type PushMessageResultResponseParameterMessageGcmI18n struct {
	Default *PushMessageResultResponseParameterMessageGcmI18nDefault `json:"default,omitempty"`
	// contains filtered or unexported fields
}

PushMessageResultResponseParameterMessageGcmI18n ...

type PushMessageResultResponseParameterMessageGcmI18nDefault

type PushMessageResultResponseParameterMessageGcmI18nDefault struct {
	Content *string `json:"content,omitempty"`
}

PushMessageResultResponseParameterMessageGcmI18nDefault ...

type PushMessageResultResponseParameterMessageGcmI18nlanguage

type PushMessageResultResponseParameterMessageGcmI18nlanguage struct {
	Content *string `json:"content,omitempty"`
}

PushMessageResultResponseParameterMessageGcmI18nlanguage [language]: ISO 639-1, 소문자

type PushMessageResultResponseParameterTarget

type PushMessageResultResponseParameterTarget struct {
	// DeviceType - (APNS|GCM)
	DeviceType *string   `json:"deviceType,omitempty"`
	To         *[]string `json:"to,omitempty"`
	// Type - (all|channel|user)
	Type *string `json:"type,omitempty"`
	// Country - 국가코드 (ISO 3166-1 alpha-2, 대문자)
	Country *[]string `json:"country,omitempty"`
	// Timezone - Number of seconds away from UTC
	Timezone *[]int32 `json:"timezone,omitempty"`
}

PushMessageResultResponseParameterTarget ...

type PushScheduleFetchAllParameter

type PushScheduleFetchAllParameter struct {
	autorest.Response `json:"-"`
	Content           *[]PushScheduleMessageFetchParameter `json:"content,omitempty"`
	TotalElements     *int32                               `json:"totalElements,omitempty"`
	TotalPages        *int32                               `json:"totalPages,omitempty"`
	First             *bool                                `json:"first,omitempty"`
	Last              *bool                                `json:"last,omitempty"`
	NumberOfElements  *int32                               `json:"numberOfElements,omitempty"`
	Size              *int32                               `json:"size,omitempty"`
	Number            *int32                               `json:"number,omitempty"`
}

PushScheduleFetchAllParameter ...

type PushScheduleFetchParameter

type PushScheduleFetchParameter struct {
	autorest.Response `json:"-"`
	// ScheduleID - 스케줄 아이디
	ScheduleID *string `json:"scheduleId,omitempty"`
	// ScheduleCode - 스케줄 코드 (알파벳/숫자/-/_)
	ScheduleCode *string `json:"scheduleCode,omitempty"`
	// ScheduleDesc - 스케줄 설명
	ScheduleDesc *string `json:"scheduleDesc,omitempty"`
	// ScheduleTimeZone - 스케줄 타임존. (Area/Name. IANA time zone database) *default: Asia/Seoul, 현지시간기준: LOCALTIME
	ScheduleTimeZone *string `json:"scheduleTimeZone,omitempty"`
	// ScheduleTime - 스케줄 시/분 (HH:mm:ss) *초단위는 무시
	ScheduleTime *string `json:"scheduleTime,omitempty"`
	// StartDate - 시작일 (yyyy-MM-dd) *default: 오늘
	StartDate *string `json:"startDate,omitempty"`
	// EndDate - 종료일 (yyyy-MM-dd) *오늘부터 최대6개월
	EndDate *string `json:"endDate,omitempty"`
	// DayOfWeeks - ALL(매일), MON, TUE, WED, ..., SUN
	DayOfWeeks *[]string `json:"dayOfWeeks,omitempty"`
	// ScheduleStatus - 스케줄 상태. (ACTIVE, INACTIVE)
	ScheduleStatus *string `json:"scheduleStatus,omitempty"`
}

PushScheduleFetchParameter ...

type PushScheduleMessageFetchParameter

type PushScheduleMessageFetchParameter struct {
	// MessageID - 메시지 아이디
	MessageID *string `json:"messageId,omitempty"`
	// ScheduleID - 스케줄 아이디
	ScheduleID *string `json:"scheduleId,omitempty"`
	// ServiceID - 서비스 아이디
	ServiceID *string `json:"serviceId,omitempty"`
	// Message - 메시지 요청 JSON string
	Message *string `json:"message,omitempty"`
}

PushScheduleMessageFetchParameter ...

type PushScheduleRegisterParameter

type PushScheduleRegisterParameter struct {
	// ScheduleCode - 스케줄 코드. (알파벳/숫자/-/_)
	ScheduleCode *string `json:"scheduleCode,omitempty"`
	// ScheduleDesc - 스케줄 설명
	ScheduleDesc *string `json:"scheduleDesc,omitempty"`
	// ScheduleTimeZone - 스케줄 타임존. (Area/Name. IANA time zone database) *default: Asia/Seoul, 현지시간기준: LOCALTIME
	ScheduleTimeZone *string `json:"scheduleTimeZone,omitempty"`
	// ScheduleTime - 스케줄 시/분 (HH:mm:ss) *초단위는 무시
	ScheduleTime *string `json:"scheduleTime,omitempty"`
	// StartDate - 시작일 (yyyy-MM-dd) *default: 오늘
	StartDate *string `json:"startDate,omitempty"`
	// EndDate - 종료일 (yyyy-MM-dd) *오늘부터 최대6개월
	EndDate *string `json:"endDate,omitempty"`
	// DayOfWeeks - ALL(매일), MON, TUE, WED, ..., SUN
	DayOfWeeks *[]string `json:"dayOfWeeks,omitempty"`
}

PushScheduleRegisterParameter ...

type PushUserRequestParameter

type PushUserRequestParameter struct {
	UserID *string `json:"userId,omitempty"`
	// DeviceType - (APNS|GCM)
	DeviceType              *string `json:"deviceType,omitempty"`
	DeviceToken             *string `json:"deviceToken,omitempty"`
	ChannelName             *string `json:"channelName,omitempty"`
	IsNotificationAgreement *bool   `json:"isNotificationAgreement,omitempty"`
	IsAdAgreement           *bool   `json:"isAdAgreement,omitempty"`
	IsNightAdAgreement      *bool   `json:"isNightAdAgreement,omitempty"`
	// Country - 국가코드 (ISO 3166-1 alpha-2, 대문자) *default: KR
	Country *string `json:"country,omitempty"`
	// Language - 언어 (ISO 639-1, 소문자) *default: ko
	Language *string `json:"language,omitempty"`
	// Timezone - Number of seconds away from UTC. Example: -28800 *default: 32400
	Timezone *int32 `json:"timezone,omitempty"`
}

PushUserRequestParameter ...

type PushUserResponseParameter

type PushUserResponseParameter struct {
	autorest.Response         `json:"-"`
	UserID                    *string    `json:"userId,omitempty"`
	ChannelName               *string    `json:"channelName,omitempty"`
	IsNotificationAgreement   *bool      `json:"isNotificationAgreement,omitempty"`
	IsAdAgreement             *bool      `json:"isAdAgreement,omitempty"`
	NotificationAgreementTime *date.Time `json:"notificationAgreementTime,omitempty"`
	AdAgreementTime           *date.Time `json:"adAgreementTime,omitempty"`
	NightAdAgreementTime      *date.Time `json:"nightAdAgreementTime,omitempty"`
	// Country - 국가코드 (ISO 3166-1 alpha-2, 대문자)
	Country *string `json:"country,omitempty"`
	// Language - 언어 (ISO 639-1, 소문자)
	Language *string `json:"language,omitempty"`
	// Timezone - Number of seconds away from UTC
	Timezone *int32                                  `json:"timezone,omitempty"`
	Devices  *[]PushUserResponseParameterDevicesItem `json:"devices,omitempty"`
}

PushUserResponseParameter ...

type PushUserResponseParameterDevicesItem

type PushUserResponseParameterDevicesItem struct {
	// DeviceType - (APNS|GCM)
	DeviceType  *string `json:"deviceType,omitempty"`
	DeviceToken *string `json:"deviceToken,omitempty"`
}

PushUserResponseParameterDevicesItem ...

type SMSClient

type SMSClient struct {
	BaseClient
}

SMSClient is the SENS Client

func NewSMSClient

func NewSMSClient() SMSClient

NewSMSClient creates an instance of the SMSClient client.

func NewSMSClientWithBaseURI

func NewSMSClientWithBaseURI(baseURI string) SMSClient

NewSMSClientWithBaseURI creates an instance of the SMSClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SMSClient) DeleteReservation

func (client SMSClient) DeleteReservation(ctx context.Context, serviceID string, reserveID string) (result autorest.Response, err error)

DeleteReservation 예약 메시지를 취소 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 reserveID - 예약 발송 요청 조회시 반환되는 메시지 식별자

func (SMSClient) DeleteReservationPreparer

func (client SMSClient) DeleteReservationPreparer(ctx context.Context, serviceID string, reserveID string) (*http.Request, error)

DeleteReservationPreparer prepares the DeleteReservation request.

func (SMSClient) DeleteReservationResponder

func (client SMSClient) DeleteReservationResponder(resp *http.Response) (result autorest.Response, err error)

DeleteReservationResponder handles the response to the DeleteReservation request. The method always closes the http.Response Body.

func (SMSClient) DeleteReservationSender

func (client SMSClient) DeleteReservationSender(req *http.Request) (*http.Response, error)

DeleteReservationSender sends the DeleteReservation request. The method will close the http.Response Body if it receives an error.

func (SMSClient) DeleteSchedule

func (client SMSClient) DeleteSchedule(ctx context.Context, serviceID string, scheduleCode string, messageID string) (result autorest.Response, err error)

DeleteSchedule 스케쥴 메시지 삭제 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 scheduleCode - 스케줄 등록시 사용한 코드 messageID - 스케줄 발송 요청 조회시 반환되는 메시지 식별자

func (SMSClient) DeleteSchedulePreparer

func (client SMSClient) DeleteSchedulePreparer(ctx context.Context, serviceID string, scheduleCode string, messageID string) (*http.Request, error)

DeleteSchedulePreparer prepares the DeleteSchedule request.

func (SMSClient) DeleteScheduleResponder

func (client SMSClient) DeleteScheduleResponder(resp *http.Response) (result autorest.Response, err error)

DeleteScheduleResponder handles the response to the DeleteSchedule request. The method always closes the http.Response Body.

func (SMSClient) DeleteScheduleSender

func (client SMSClient) DeleteScheduleSender(req *http.Request) (*http.Response, error)

DeleteScheduleSender sends the DeleteSchedule request. The method will close the http.Response Body if it receives an error.

func (SMSClient) GetRequest

func (client SMSClient) GetRequest(ctx context.Context, serviceID string, requestID string) (result SMSMessageParameter, err error)

GetRequest 메시지 발송 요청 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 requestID - 발송 요청 아이디

func (SMSClient) GetRequestPreparer

func (client SMSClient) GetRequestPreparer(ctx context.Context, serviceID string, requestID string) (*http.Request, error)

GetRequestPreparer prepares the GetRequest request.

func (SMSClient) GetRequestResponder

func (client SMSClient) GetRequestResponder(resp *http.Response) (result SMSMessageParameter, err error)

GetRequestResponder handles the response to the GetRequest request. The method always closes the http.Response Body.

func (SMSClient) GetRequestSender

func (client SMSClient) GetRequestSender(req *http.Request) (*http.Response, error)

GetRequestSender sends the GetRequest request. The method will close the http.Response Body if it receives an error.

func (SMSClient) GetResult

func (client SMSClient) GetResult(ctx context.Context, serviceID string, messageID string) (result SMSMessageParameter, err error)

GetResult 메시지 발송 결과 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 messageID - 메시지 발송 요청 조회시 반환되는 메시지 식별자

func (SMSClient) GetResultPreparer

func (client SMSClient) GetResultPreparer(ctx context.Context, serviceID string, messageID string) (*http.Request, error)

GetResultPreparer prepares the GetResult request.

func (SMSClient) GetResultResponder

func (client SMSClient) GetResultResponder(resp *http.Response) (result SMSMessageParameter, err error)

GetResultResponder handles the response to the GetResult request. The method always closes the http.Response Body.

func (SMSClient) GetResultSender

func (client SMSClient) GetResultSender(req *http.Request) (*http.Response, error)

GetResultSender sends the GetResult request. The method will close the http.Response Body if it receives an error.

func (SMSClient) Request

func (client SMSClient) Request(ctx context.Context, serviceID string, parameter SMSMessageRequestParameter) (result SMSMessageParameter, err error)

Request SMS 메시지 발송 요청 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 parameter - SMS 메시지 요청 정보

func (SMSClient) RequestPreparer

func (client SMSClient) RequestPreparer(ctx context.Context, serviceID string, parameter SMSMessageRequestParameter) (*http.Request, error)

RequestPreparer prepares the Request request.

func (SMSClient) RequestResponder

func (client SMSClient) RequestResponder(resp *http.Response) (result SMSMessageParameter, err error)

RequestResponder handles the response to the Request request. The method always closes the http.Response Body.

func (SMSClient) RequestSender

func (client SMSClient) RequestSender(req *http.Request) (*http.Response, error)

RequestSender sends the Request request. The method will close the http.Response Body if it receives an error.

type SMSMessage

type SMSMessage struct {
	// MessageID - 메시지 아이디
	MessageID *string `json:"messageId,omitempty"`
	// From - 발신번호
	From *string `json:"from,omitempty"`
	// To - 수신번호
	To *string `json:"to,omitempty"`
	// ContentType - 메시지 컨텐츠 구분(COMM: 일반미시지, AD: 광고메시지)
	ContentType *string `json:"contentType,omitempty"`
	// CountryCode - 국가번호
	CountryCode *string `json:"countryCode,omitempty"`
	// RequestID - 요청 아이디
	RequestID *string `json:"requestId,omitempty"`
	// StatusCode - 단말 수신 상태 결과 코드
	StatusCode *string `json:"statusCode,omitempty"`
	// StatusName - 단말 수신 상태 결과명
	StatusName *string `json:"statusName,omitempty"`
	// StatusMessage - 단말 수신 상태 결과 메시지
	StatusMessage *string `json:"statusMessage,omitempty"`
	// Status - 발송 처리 상태(READY: 대기, PROCESSING: 처리중, COMPLETED: 처리완료)
	Status *string `json:"status,omitempty"`
	// CompleteTime - 발송 완료 시간
	CompleteTime *string `json:"completeTime,omitempty"`
	// Content - 메시지 컨텐츠 내용
	Content *string `json:"content,omitempty"`
	// TelcoCode - 통신사코드
	TelcoCode *string `json:"telcoCode,omitempty"`
}

SMSMessage ...

type SMSMessageParameter

type SMSMessageParameter struct {
	autorest.Response `json:"-"`
	// RequestID - 요청 아이디
	RequestID *string `json:"requestId,omitempty"`
	// RequestTime - 요청 시간
	RequestTime *string `json:"requestTime,omitempty"`
	// StatusCode - 발송 요청 상태 코드
	StatusCode *string `json:"statusCode,omitempty"`
	// StatusName - 발송 요청 상태명
	StatusName *string `json:"statusName,omitempty"`
	// StatusMessage - 발송 요청 상태 메시지
	StatusMessage *string       `json:"statusMessage,omitempty"`
	Messages      *[]SMSMessage `json:"messages,omitempty"`
}

SMSMessageParameter ...

type SMSMessageRequestParameter

type SMSMessageRequestParameter struct {
	// Type - 메시지 구분. (SMS, LMS, MMS)
	Type *string `json:"type,omitempty"`
	// CountryCode - 국가번호
	CountryCode *string `json:"countryCode,omitempty"`
	// From - 사전 등록된 발신번호
	From *string `json:"from,omitempty"`
	// Subject - 기본 메시지 제목. (LMS, MMS에서만 사용가능)
	Subject *string `json:"subject,omitempty"`
	// ContentType - 메시지 컨텐츠 구분. (COMM: 일반미시지, AD: 광고메시지)
	ContentType *string `json:"contentType,omitempty"`
	// Content - 기본 메시지 컨텐츠 내용
	Content *string `json:"content,omitempty"`
	// ReserveTime - 예약 발송 시간
	ReserveTime *string `json:"reserveTime,omitempty"`
	// ReserveTimeZone - 예약 시간 시간대 (default: Asia/Seoul)
	ReserveTimeZone *string `json:"reserveTimeZone,omitempty"`
	// ScheduleCode - 발송할 스케줄 코드
	ScheduleCode *string                                   `json:"scheduleCode,omitempty"`
	Messages     *[]SMSMessageRequestParameterMessagesItem `json:"messages,omitempty"`
	Files        *[]SMSMessageRequestParameterFilesItem    `json:"files,omitempty"`
}

SMSMessageRequestParameter ...

type SMSMessageRequestParameterFilesItem

type SMSMessageRequestParameterFilesItem struct {
	// Name - 파일 이름(jpg, jpeg 확장자를 가진 파일 이름)
	Name *string `json:"name,omitempty"`
	// Body - 파일을 Base64로 인코딩한 값
	Body *string `json:"body,omitempty"`
}

SMSMessageRequestParameterFilesItem ...

type SMSMessageRequestParameterMessagesItem

type SMSMessageRequestParameterMessagesItem struct {
	// Subject - 메시지 제목(정의하지 않으면 기본 메시지 제목을 사용)
	Subject *string `json:"subject,omitempty"`
	// Content - 메시지 컨텐츠 내용(정의하지 않으면 기본 메시지 컨텐츠 내용을 사용)
	Content *string `json:"content,omitempty"`
	// To - 수신번호
	To *string `json:"to,omitempty"`
}

SMSMessageRequestParameterMessagesItem ...

type ScheduleClient

type ScheduleClient struct {
	BaseClient
}

ScheduleClient is the SENS Client

func NewScheduleClient

func NewScheduleClient() ScheduleClient

NewScheduleClient creates an instance of the ScheduleClient client.

func NewScheduleClientWithBaseURI

func NewScheduleClientWithBaseURI(baseURI string) ScheduleClient

NewScheduleClientWithBaseURI creates an instance of the ScheduleClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ScheduleClient) Create

func (client ScheduleClient) Create(ctx context.Context, serviceID string, parameter PushScheduleRegisterParameter) (result autorest.Response, err error)

Create 스케줄 등록 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디

func (ScheduleClient) CreatePreparer

func (client ScheduleClient) CreatePreparer(ctx context.Context, serviceID string, parameter PushScheduleRegisterParameter) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ScheduleClient) CreateResponder

func (client ScheduleClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ScheduleClient) CreateSender

func (client ScheduleClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ScheduleClient) Delete

func (client ScheduleClient) Delete(ctx context.Context, serviceID string, scheduleCode string) (result autorest.Response, err error)

Delete 스케쥴 삭제 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 scheduleCode - 등록하려는 스케줄 코드

func (ScheduleClient) DeletePreparer

func (client ScheduleClient) DeletePreparer(ctx context.Context, serviceID string, scheduleCode string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ScheduleClient) DeleteResponder

func (client ScheduleClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ScheduleClient) DeleteSender

func (client ScheduleClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ScheduleClient) Get

func (client ScheduleClient) Get(ctx context.Context, serviceID string, scheduleCode string) (result PushScheduleFetchParameter, err error)

Get 스케쥴 단건 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 scheduleCode - 등록하려는 스케줄 코드

func (ScheduleClient) GetPreparer

func (client ScheduleClient) GetPreparer(ctx context.Context, serviceID string, scheduleCode string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ScheduleClient) GetResponder

func (client ScheduleClient) GetResponder(resp *http.Response) (result PushScheduleFetchParameter, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ScheduleClient) GetSender

func (client ScheduleClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ScheduleClient) List

func (client ScheduleClient) List(ctx context.Context, serviceID string, page *int32, scheduleCode string, size *int32, sortParameter string) (result PushScheduleFetchAllParameter, err error)

List 스케줄 목록 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 page - 페이지 (0부터 시작) scheduleCode - 등록하려는 스케줄 코드 size - 페이지 크기 (기본 20) sortParameter - 정렬 항목 (asc|desc)

func (ScheduleClient) ListPreparer

func (client ScheduleClient) ListPreparer(ctx context.Context, serviceID string, page *int32, scheduleCode string, size *int32, sortParameter string) (*http.Request, error)

ListPreparer prepares the List request.

func (ScheduleClient) ListResponder

func (client ScheduleClient) ListResponder(resp *http.Response) (result PushScheduleFetchAllParameter, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ScheduleClient) ListSender

func (client ScheduleClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ScheduleClient) Put

func (client ScheduleClient) Put(ctx context.Context, serviceID string, scheduleCode string, parameter PushScheduleRegisterParameter) (result PushScheduleFetchParameter, err error)

Put 스케쥴 수정 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 scheduleCode - 등록하려는 스케줄 코드

func (ScheduleClient) PutPreparer

func (client ScheduleClient) PutPreparer(ctx context.Context, serviceID string, scheduleCode string, parameter PushScheduleRegisterParameter) (*http.Request, error)

PutPreparer prepares the Put request.

func (ScheduleClient) PutResponder

func (client ScheduleClient) PutResponder(resp *http.Response) (result PushScheduleFetchParameter, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (ScheduleClient) PutSender

func (client ScheduleClient) PutSender(req *http.Request) (*http.Response, error)

PutSender sends the Put request. The method will close the http.Response Body if it receives an error.

type ScheduleMessageClient

type ScheduleMessageClient struct {
	BaseClient
}

ScheduleMessageClient is the SENS Client

func NewScheduleMessageClient

func NewScheduleMessageClient() ScheduleMessageClient

NewScheduleMessageClient creates an instance of the ScheduleMessageClient client.

func NewScheduleMessageClientWithBaseURI

func NewScheduleMessageClientWithBaseURI(baseURI string) ScheduleMessageClient

NewScheduleMessageClientWithBaseURI creates an instance of the ScheduleMessageClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ScheduleMessageClient) Delete

func (client ScheduleMessageClient) Delete(ctx context.Context, serviceID string, scheduleCode string, messageID string) (result autorest.Response, err error)

Delete 스케쥴 메시지 삭제 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 scheduleCode - 등록하려는 스케줄 코드 messageID - 스케줄 발송 요청 조회시 반환되는 메시지 식별자

func (ScheduleMessageClient) DeletePreparer

func (client ScheduleMessageClient) DeletePreparer(ctx context.Context, serviceID string, scheduleCode string, messageID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ScheduleMessageClient) DeleteResponder

func (client ScheduleMessageClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ScheduleMessageClient) DeleteSender

func (client ScheduleMessageClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ScheduleMessageClient) Get

func (client ScheduleMessageClient) Get(ctx context.Context, serviceID string, scheduleCode string, messageID string) (result PushScheduleFetchParameter, err error)

Get 스케쥴 메시지 단건 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 scheduleCode - 등록하려는 스케줄 코드 messageID - 스케줄 발송 요청 조회시 반환되는 메시지 식별자

func (ScheduleMessageClient) GetPreparer

func (client ScheduleMessageClient) GetPreparer(ctx context.Context, serviceID string, scheduleCode string, messageID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ScheduleMessageClient) GetResponder

func (client ScheduleMessageClient) GetResponder(resp *http.Response) (result PushScheduleFetchParameter, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ScheduleMessageClient) GetSender

func (client ScheduleMessageClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ScheduleMessageClient) List

func (client ScheduleMessageClient) List(ctx context.Context, serviceID string, scheduleCode string, page *int32, size *int32) (result PushScheduleFetchAllParameter, err error)

List 스케쥴 메시지 조회 Parameters: serviceID - 프로젝트 등록 시 발급받은 서비스 아이디 scheduleCode - 등록하려는 스케줄 코드 page - 페이지 번호 (0부터 시작) size - 페이지 사이즈 (기본 20)

func (ScheduleMessageClient) ListPreparer

func (client ScheduleMessageClient) ListPreparer(ctx context.Context, serviceID string, scheduleCode string, page *int32, size *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (ScheduleMessageClient) ListResponder

func (client ScheduleMessageClient) ListResponder(resp *http.Response) (result PushScheduleFetchAllParameter, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ScheduleMessageClient) ListSender

func (client ScheduleMessageClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL