airship

package module
v0.0.0-...-a86cf5d Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

WIP - Work in Progress

go-airship

go-airship is a Go library for the Airship REST API.

Features

Documentation

You can find the documentation hosted on godoc.org.

Install

go get github.com/sheilaqf/go-airship

Development

Download modules to local cache.

go mod download

License

Apache 2.0

Documentation

Overview

Package airship provides a Client for the AirShip API

Index

Constants

View Source
const (
	// AirshipNorthAmericaURL ...
	AirshipNorthAmericaURL = "https://go.urbanairship.com/api/"
	// AirshipEuropeURL ...
	AirshipEuropeURL = "https://go.airship.eu/api/"
)
View Source
const (
	// PushPath ...
	PushPath = "push"
	// ReportsPath ...
	ReportsPath = "reports"
	// FeedsPath ...
	FeedsPath = "feeds"
	// SchedulesPath ...
	SchedulesPath = "schedules"
	// PipelinesPath ...
	PipelinesPath = "pipelines"
	// ExperimentsPath ...
	ExperimentsPath = "experiments"
	// TemplatesPath ...
	TemplatesPath = "templates"
	// RegionsPath ...
	RegionsPath = "regions"
	// ChannelsPath ...
	ChannelsPath = "channels"
	// NamedUsersPath ...
	NamedUsersPath = "named_users"
	// SegmentsPath ...
	SegmentsPath = "segements"
	// LocationPath ...
	LocationPath = "location"
	// ListsPath ...
	ListsPath = "lists"
	// CreateAndSendPath ...
	CreateAndSendPath = "create-and-send"
)
View Source
const (
	// AirshipAcceptHeader this is basically doing the versioning of the API requests
	AirshipAcceptHeader = "application/vnd.urbanairship+json; version=3;"
)

Variables

View Source
var (
	// ReportsDevicesPath ...
	ReportsDevicesPath = path.Join(ReportsPath, "devices")
	// ReportsEventsPath ...
	ReportsEventsPath = path.Join(ReportsPath, "events")
	// ReportsAppOpensPath ...
	ReportsAppOpensPath = path.Join(ReportsPath, "opens")
	// ReportsOptInsPath ...
	ReportsOptInsPath = path.Join(ReportsPath, "optins")
	// ReportsOptInsPath ...
	ReportsOptOutsPath = path.Join(ReportsPath, "optouts")
	// ReportsResponsesPath ...
	ReportsResponsesPath = path.Join(ReportsPath, "responses")
	// ReportsResponseListPath ...
	ReportsResponsesListPath = path.Join(ReportsResponsesPath, "list")
	// ReportsSendsPaths ...
	ReportsSendsPath = path.Join(ReportsPath, "sends")
	// ReportsTimeInAppPath ...
	ReportsTimeInAppPath = path.Join(ReportsPath, "timeinapp")
)

Functions

func Auth

func Auth(key string, secret string) func(o *Opts)

Auth configures the API Access Key and API Master Secret.

func EndpointURL

func EndpointURL(endpointURL string) func(o *Opts)

EndpointURL configures the API specific endpoint. There are shared constants for the already available ones.

Types

type Actions

type Actions struct {
	// AddTag ...
	AddTag []string `json:"add_tag,omitempty"`
	// Open ...
	Open interface{} `json:"open"`
	// RemoveTag ...
	RemoveTag []string `json:"remove_tag,omitempty"`
	// Share ...
	Share string `json:"share,omitempty"`
}

Actions ...

type ActionsOpenDeepLink struct {
	// Content ...
	Content string `json:"add_tag"`
	// ActionType ...
	ActionType string `json:"type"`
	// FallbackURL ...
	FallbackURL string `json:"fallback_url,omitempty"`
}

ActionsOpenDeepLink ...

type ActionsOpenLandingPage

type ActionsOpenLandingPage struct {
	// Content ...
	Content string `json:"add_tag"`
	// ActionType ...
	ActionType string `json:"type"`
	// FallbackURL ...
	FallbackURL string `json:"fallback_url,omitempty"`
}

ActionsOpenLandingPage ...

type ActionsOpenLandingPageContent

type ActionsOpenLandingPageContent struct {
	// Body ...
	Body string `json:"body"`
	// ContentEncoding ...
	ContentEncoding string `json:"content_encoding,omitempty"`
	// ContentEncoding ...
	ContentType string `json:"content_type,omitempty"`
	// ActionType ...
	ActionType string `json:"type"`
	// FallbackURL ...
	FallbackURL string `json:"fallback_url,omitempty"`
}

ActionsOpenLandingPageContent ...

type ActionsOpenURL

type ActionsOpenURL struct {
	// Content ...
	Content string `json:"add_tag"`
	// ActionType ...
	ActionType string `json:"type"`
}

ActionsOpenURL ...

type AirshipError

type AirshipError struct {
	// Details ...
	Details AirshipErrorDetails `json:"details,omitempty"`
	// Message ...
	Message string `json:"error"`
	// Code ...
	Code int `json:"error_code,omitempty"`
	// OK ...
	OK bool `json:"ok"`
}

AirShipError is an error that is returned from the API in form of JSN response.

func (AirshipError) Error

func (l AirshipError) Error() string

Error is returning a string to confirm to the error interface

type AirshipErrorDetails

type AirshipErrorDetails struct {
	// Message ...
	Message string `json:"error,omitempty"`
	// Location ...
	Location AirshipErrorDetailsLocation `json:"location,omitempty"`
	// Path ...
	Path string `json:"path,omitempty"`
}

AirshipErrorDetails ...

type AirshipErrorDetailsLocation

type AirshipErrorDetailsLocation struct {
	// Column ...
	Column int `json:"column,omitempty"`
	// Column ...
	Line int `json:"line,omitempty"`
}

AirshipErrorDetailsLocation ...

type AudienceSelector

type AudienceSelector struct {
	// AmazonChannel ...
	AmazonChannel []string `json:"amazon_channel,omitempty"`
	// AndroidChannel ...
	AndroidChannel []string `json:"android_channel,omitempty"`
	// Channel ...
	Channel []string `json:"channel,omitempty"`
	// IOSChannel ...
	IOSChannel []string `json:"ios_channel,omitempty"`
	// Location ...
	Location *Location `json:"location,omitempty"`
	// NamedUser ...
	NamedUser []string `json:"named_user,omitempty"`
	// OpenChannel ...
	OpenChannel []string `json:"open_channel,omitempty"`
	// Segment ...
	Segment []string `json:"segment,omitempty"`
	// SmsID ...
	SmsID *SmsID `json:"sms_id,omitempty"`
	// StaticList ...
	StaticList []string `json:"static_list,omitempty"`
	// Tag ...
	Tag []string `json:"tag,omitempty"`
	// WNS ...
	WNS []string `json:"wns,omitempty"`
	// Date ...
	Date *Date `json:"date,omitempty"`
}

AudienceSelector ...

type Campaign

type Campaign struct {
	// Categories ...
	Categories []string `json:"categories"`
}

Campaign ...

type ChannelsService

type ChannelsService struct {
	// contains filtered or unexported fields
}

ChannelsService ...

type Client

type Client struct {

	// Endpoints in the API are exposed as services
	Push          *PushService
	Reports       *ReportsService
	Feeds         *FeedsService
	Schedules     *SchedulesService
	Pipelines     *PipelinesService
	Experiments   *ExperimentsService
	Templates     *TemplatesService
	Regions       *RegionsService
	Channels      *ChannelsService
	NamedUsers    *NamedUsersService
	Location      *LocationService
	Lists         *ListsService
	CreateAndSend *CreateAndSendService
	// contains filtered or unexported fields
}

Client holds the client for localytics

func New

func New(httpClient *http.Client, opts ...Opt) *Client

New returns a new instance of the client. See /examples for the use

httpClient := &http.Client{}

client := airship.New(httpClient, airship.Auth(apiKey, apiMasterKey))

res, err := client.Apps()

type ContentEncoding

type ContentEncoding string

ContentEncoding ...

const (
	UTF8Encoding   ContentEncoding = "utf-8"
	Base64Encoding ContentEncoding = "base64"
)

type CreateAndSendService

type CreateAndSendService struct {
	// contains filtered or unexported fields
}

CreateAndSendService ...

type Date

type Date struct {
	// ID ...
	ID string `json:"id,omitempty"`
	// Hours ...
	Hours DateWindow `json:"hours,omitempty"`
	// Days ...
	Days DateWindow `json:"days,omitempty"`
	// Weeks ...
	Weeks DateWindow `json:"weeks,omitempty"`
	// Hours ...
	Months DateWindow `json:"monts,omitempty"`
}

Date ...

type DateWindow

type DateWindow struct {
	// End ...
	End string `json:"end,omitempty"`
	// Start ...
	Start string `json:"start,omitempty"`
	// Recent ...
	Recent int `json:"recent,omitempty"`
}

DateWindow ...

type ExperimentsService

type ExperimentsService struct {
	// contains filtered or unexported fields
}

ExperimentsService ...

type FeedsService

type FeedsService struct {
	// contains filtered or unexported fields
}

FeedsService ...

type GetDevicesParams

type GetDevicesParams struct {
	// Date ...
	Date string `url:"date,omitempty"`
}

GetDevicesParams ...

type GetDevicesResponse

type GetDevicesResponse struct {
	// TotalUniqueDevices ...
	TotalUniqueDevices int `json:"total_unique_devices"`
	// DateClosed ...
	DateClosed string `json:"date_closed"`
	// DateComputed ...
	DateComputed string `json:"date_computed"`
	// Counts ...
	Counts map[string]map[string]int `json:"counts"`
}

GetDevicesResponse ...

type GetEventsParams

type GetEventsParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
	// Page ...
	Page int `url:"page,omitempty"`
	// PageSize ...
	PageSize int `url:"page_size,omitempty"`
}

GetEventsParams ...

type GetEventsResponse

type GetEventsResponse struct {
	// OK ...
	OK bool `json:",omitempty"`
	// TotalValue ...
	TotalValue int `json:"total_value,omitempty"`
	// TotalCount ...
	TotalCount int `json:"total_count,omitempty"`
	// NextPage ...
	NextPage string `json:"next_page,omitempty"`
	// Events ...
	Events []*ReportsEvent `json:"events,omitempty"`
}

GetEventsResponse ...

type InAppMessage

type InAppMessage struct {
	// Actions ...
	Actions interface{} `json:"actions,omitempty"`
	// Alert ...
	Alert string `json:"alert"`
	// Display ...
	Display *InAppMessageDisplay `json:"display,omitempty"`
}

InAppMessage ...

type InAppMessageDisplay

type InAppMessageDisplay struct {
	// Duration ...
	Duration int `json:"duration,omitempty"`
	// Position ...
	Position string `json:"position,omitempty"`
	// PrimaryColor ...
	PrimaryColor string `json:"primary_color,omitempty"`
	// SecondaryColor ...
	SecondaryColor string `json:"secondary_color,omitempty"`
	// DisplayType ...
	DisplayType string `json:"display_type"`
	// Expire ...
	Expire interface{} `json:"expire,omitempty"`
	// Extra ...
	Extra map[string]string `json:"extra,omitempty"`
}

InAppMessageDisplay ...

type ListAppOpensParams

type ListAppOpensParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
}

ListAppOpensParams ...

type ListAppOpensResponse

type ListAppOpensResponse struct {
	// Opens ...
	Opens []*ReportsAppOpens `url:"opens,omitempty"`
	// NextPage ...
	NextPage string `url:"next_page,omitempty"`
}

ListAppOpens ...

type ListOptInsParams

type ListOptInsParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
}

ListOptInsParams ...

type ListOptInsResponse

type ListOptInsResponse struct {
	// OptIns ...
	OptIns []*ReportsOptIns `url:"optins,omitempty"`
	// NextPage ...
	NextPage string `url:"next_page,omitempty"`
}

ListOptInsResponse ...

type ListOptOutsParams

type ListOptOutsParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
}

ListOptOutsParams ...

type ListOptOutsResponse

type ListOptOutsResponse struct {
	// OptOuts ...
	OptOuts []*ReportsOptOuts `url:"optouts,omitempty"`
	// NextPage ...
	NextPage string `url:"next_page,omitempty"`
}

ListOptOutsResponse ...

type ListResponsePushesParams

type ListResponsePushesParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
}

ListResponsePushesParams ...

type ListResponsePushesResponse

type ListResponsePushesResponse struct {
	// Opens ...
	Pushes []*ReportsResponsesList `url:"pushes,omitempty"`
	// NextPage ...
	NextPage string `url:"next_page,omitempty"`
}

ListResponsePushesResponse ...

type ListResponsesParams

type ListResponsesParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
}

ListResponsesParams ...

type ListResponsesResponse

type ListResponsesResponse struct {
	// Responses ...
	Responses []*ReportsResponses `url:"responses,omitempty"`
	// NextPage ...
	NextPage string `url:"next_page,omitempty"`
}

ListResponsesResponse ...

type ListSchedulesParams

type ListSchedulesParams struct {
	// Start ...
	Start string `url:"start,omitempty"`
	// Start ...
	Limit int `url:"limit,omitempty"`
}

ListSchedulesParams ...

type ListSchedulesResponse

type ListSchedulesResponse struct {
	// Count ...
	Count int `json:"count,omitempty"`
	// Count ...
	OK bool `json:"ok,omitempty"`
	// NextPage ...
	NextPage string `json:"next_page,omitempty"`
	// Schedules ...
	Schedules []*Schedule `json:"schedules"`
	// TotalCount ...
	TotalCount int `json:"total_count,omitempty"`
}

ListSchedulesResponse ...

type ListSendsParams

type ListSendsParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
}

ListSendsParams ...

type ListSendsResponse

type ListSendsResponse struct {
	// Sends ...
	Sends []*ReportsSends `url:"sends,omitempty"`
	// NextPage ...
	NextPage string `url:"next_page,omitempty"`
}

ListSendsResponse ...

type ListTimeInAppParams

type ListTimeInAppParams struct {
	// Start ...
	Start string `url:"start"`
	// End ...
	End string `url:"end"`
	// Precision ...
	Precision string `url:"precision"`
}

ListTimeInAppParams ...

type ListTimeInAppResponse

type ListTimeInAppResponse struct {
	// Sends ...
	Sends []*ReportsSends `url:"sends,omitempty"`
	// NextPage ...
	NextPage string `url:"next_page,omitempty"`
}

ListTimeInAppResponse ...

type ListsService

type ListsService struct {
	// contains filtered or unexported fields
}

ListsService ...

type Location

type Location struct {
}

Location ...

type LocationService

type LocationService struct {
	// contains filtered or unexported fields
}

LocationService ...

type MessageCenterMessage

type MessageCenterMessage struct {
	// Body ...
	Body string `json:"body"`
	// ContentEncoding ...
	ContentEncoding ContentEncoding `json:"content_encoding,omitempty"`
	// ContentMimeType ...
	ContentMimeType string `json:"content_type,omitempty"`
	// Expiry ...
	Expiry string `json:"expiry,expiry"`
	// Extra ...
	Extra map[string]string `json:"extra,expiry"`
	// Extra ...
	Icons map[string]string `json:"icons,expiry"`
	// Title ...
	Title string `json:"title,expiry"`
}

MessageCenterMessage ...

type NamedUsersService

type NamedUsersService struct {
	// contains filtered or unexported fields
}

NamedUsersService ...

type Notification

type Notification struct {
	// Actions ...
	Actions *Actions `json:"actions,omitempty"`
	// Alert ...
	Alert string `json:"alert,omitempty"`
}

Notification ...

type Opt

type Opt func(*Opts)

Opt is an option for the client.

type Opts

type Opts struct {
	ApiKey      string
	ApiSecret   string
	EndpointURL string
}

Opts holds alls the options for the client.

type PipelinesService

type PipelinesService struct {
	// contains filtered or unexported fields
}

PipelinesService ...

type PostScheduleResponse

type PostScheduleResponse struct {
	// OK ...
	OK bool `json:"ok,omitempty"`
	// OperationID ...
	OperationID string `json:"operation_id,omitempty"`
	// ScheduleIDs ...
	ScheduleIDs []string `json:"schedule_ids,omitempty"`
	// ScheduleURLS ...
	ScheduleURLS []string `json:"schedule_urls,omitempty"`
	// Schedules ...
	Schedules []*Schedule `json:"schedules,omitempty"`
}

PostScheduleResponse ...

type Push

type Push struct {
	// Audience ...
	Audience map[string][]*AudienceSelector `json:"audience"`
	// Campaigns ...
	Campaigns []*Campaign `json:"campaigns,omitempty"`
	// DeviceTypes ...
	DeviceTypes []string `json:"device_types"`
	// InAppMessage ...
	InAppMessage *InAppMessage `json:"in_app,omitempty"`
	// Message ...
	MessageCenter *MessageCenterMessage `json:"message,omitempty"`
	// Notification ...
	Notification *Notification `json:"notification,omitempty"`
}

Push ...

type PushOptions

type PushOptions struct {
	// Expiry ...
	Expiry string `json:"expiry,expiry,omitempty"`
	// NoThrottle ...
	NoThrottle bool `json:"no_throttle,omitempty"`
	// RedactPayload ...
	RedactPayload bool `json:"redact_payload,omitempty"`
}

PushOptions ...

type PushService

type PushService struct {
	// contains filtered or unexported fields
}

PushService ...

func (*PushService) PostPush

func (p *PushService) PostPush(pushs []*Push) (*Response, error)

PostPush ...

type PutScheduleResponse

type PutScheduleResponse struct {
	// OK ...
	OK bool `json:"ok,omitempty"`
	// OperationID ...
	OperationID string `json:"operation_id,omitempty"`
	// ScheduleURLS ...
	ScheduleURLS []string `json:"schedule_urls,omitempty"`
	// Schedules ...
	Schedules []*Schedule `json:"schedules,omitempty"`
}

PutScheduleResponse ...

type RegionsService

type RegionsService struct {
	// contains filtered or unexported fields
}

RegionsService ...

type ReportsAppOpens

type ReportsAppOpens struct {
	// Android ...
	Android int `json:"android"`
	// IOS ...
	IOS int `json:"ios"`
	// Date ...
	Date string `json:"date"`
}

ReportsAppOpens ...

type ReportsEvent

type ReportsEvent struct {
	// Name ...
	Name string `json:"name,omitempty"`
	// Conversion ...
	Conversion string `json:"conversion,omitempty"`
	// Location ...
	Location string `json:"location,omitempty"`
	// Count ...
	Count int `json:"count,omitempty"`
	// Count ...
	Value int `json:"value,omitempty"`
}

ReportsEvent ...

type ReportsOpenChannelSends

type ReportsOpenChannelSends struct {
	// Plattforms ...
	Platforms []*ReportsOpenChannelSendsPlattform `json:"platforms"`
}

ReportsOpenChannelSends ...

type ReportsOpenChannelSendsPlattform

type ReportsOpenChannelSendsPlattform struct {
	// ID ...
	ID string `json:"id"`
	// ID ...
	Sends int `json:"sends"`
}

ReportsOpenChannelSendsPlattform ...

type ReportsOptIns

type ReportsOptIns struct {
	// Android ...
	Android int `json:"android"`
	// IOS ...
	IOS int `json:"ios"`
	// Date ...
	Date string `json:"date"`
}

ReportsOptIns ...

type ReportsOptOuts

type ReportsOptOuts struct {
	// Android ...
	Android int `json:"android"`
	// IOS ...
	IOS int `json:"ios"`
	// Date ...
	Date string `json:"date"`
}

ReportsOptOuts ...

type ReportsResponses

type ReportsResponses struct {
	// Android ...
	Android *ReportsResponsesStats `json:"android"`
	// IOS ...
	IOS *ReportsResponsesStats `json:"ios"`
	// Date ...
	Date string `json:"date"`
}

ReportsResponses ...

type ReportsResponsesList

type ReportsResponsesList struct {
	// PushUUID ...
	PushUUID string `json:"push_uuid"`
	// PushTime ...
	PushTime string `json:"push_time"`
	// PushType ...
	PushType string `json:"push_type"`
	// GroupID ...
	GroupID string `json:"group_id"`
	// DirectResponses ...
	DirectResponses int `json:"direct_responses"`
	// Sends ...
	Sends int `json:"sends"`
	// OpenChannelsSends ...
	OpenChannelSends *ReportsOpenChannelSends `json:"open_channel_sends"`
}

ReportsResponsesList ...

type ReportsResponsesStats

type ReportsResponsesStats struct {
	// Direct ...
	Direct int `json:"direct"`
	// Influenced ...
	Influenced int `json:"influenced"`
}

ReportsResponsesStats ...

type ReportsSends

type ReportsSends struct {
	// Android ...
	Android int `json:"android"`
	// IOS ...
	IOS int `json:"iods"`
	// Date ...
	Date string `json:"date"`
}

ReportsSends ...

type ReportsService

type ReportsService struct {
	// contains filtered or unexported fields
}

ReportsService ...

func (*ReportsService) GetDevices

func (r *ReportsService) GetDevices(params *GetDevicesParams) (*GetDevicesResponse, error)

Devices ...

func (*ReportsService) GetEvents

func (r *ReportsService) GetEvents(params *GetEventsParams) (*GetEventsResponse, error)

Events ...

func (*ReportsService) ListOpens

func (r *ReportsService) ListOpens(params *ListAppOpensParams) (*ListAppOpensResponse, error)

Opens ...

func (*ReportsService) ListOptIns

func (r *ReportsService) ListOptIns(params *ListOptInsParams) (*ListOptInsResponse, error)

OptIns ...

func (*ReportsService) ListOptOuts

func (r *ReportsService) ListOptOuts(params *ListOptOutsParams) (*ListOptOutsResponse, error)

OptOuts ...

func (*ReportsService) ListReponsePushes

func (r *ReportsService) ListReponsePushes(params *ListResponsePushesParams) (*ListResponsePushesResponse, error)

Responses ...

func (*ReportsService) ListResponses

func (r *ReportsService) ListResponses(params *ListResponsesParams) (*ListResponsesResponse, error)

Responses ...

func (*ReportsService) ListSends

func (r *ReportsService) ListSends(params *ListSendsParams) (*ListSendsResponse, error)

Sends ...

func (*ReportsService) ListTimeInApp

func (r *ReportsService) ListTimeInApp(params *ListTimeInAppParams) (*ListTimeInAppResponse, error)

ListTimeInApp ...

type Response

type Response struct {
	// OK ...
	OK bool `json:"ok"`
	// OperationID ...
	OperationID string `json:"operation_id,omitempty"`
}

Response ...

type Schedule

type Schedule struct {
	// Name ...
	Name string `json:"count,omitempty"`
	// Push ...
	Push *Push `json:"push,omitempty"`
	// PushIDs ...
	PushIDs []string `json:"push_ids,omitempty"`
	// URL ...
	URL string `json:"url,omitempty"`
	// Spec ...
	Spec *ScheduleSpec `json:"schedule"`
}

Schedule ...

type ScheduleSpec

type ScheduleSpec struct {
	// ScheduleTime ...
	ScheduleTime string `json:"scheduled_time,omitempty"`
	// LocalScheduleTime ...
	LocalScheduleTime string `json:"local_scheduled_time,omitempty"`
	// BestTime ...
	BestTime string `json:"best_time,omitempty"`
}

ScheduleSpec ...

type SchedulesService

type SchedulesService struct {
	// contains filtered or unexported fields
}

SchedulesServices ...

func (*SchedulesService) DeleteSchedule

func (s *SchedulesService) DeleteSchedule(id string) error

DeleteSchedule ...

func (*SchedulesService) ListSchedules

func (s *SchedulesService) ListSchedules(params *ListSchedulesParams) (*ListSchedulesResponse, error)

ListSchedules ...

func (*SchedulesService) PostSchedule

func (s *SchedulesService) PostSchedule(schedules []*Schedule) (*PostScheduleResponse, error)

PostSchedule ...

func (*SchedulesService) PutSchedule

func (s *SchedulesService) PutSchedule(id string, schedule *Schedule) (*PutScheduleResponse, error)

PutSchedule ...

type SegmentsService

type SegmentsService struct {
	// contains filtered or unexported fields
}

SegmentsService ...

type SmsID

type SmsID struct {
	// MsisDN ...
	MsisDN string `json:"msisdn"`
	// Sender ...
	Sender string `json:"sender"`
}

SmsID ...

type TemplatesService

type TemplatesService struct {
	// contains filtered or unexported fields
}

TemplatesService ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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