push

package
v0.0.0-...-0b043e4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Product = "Push"
	Style   = "RPC"
	Version = "2015-08-27"
)

Variables

This section is empty.

Functions

func NewParams

func NewParams() openapi.Params

Types

type API

type API struct {
	openapi.Service
}

func New

func New(accessKeyId, accessKeySecret string) API

func (API) BatchGetDevicesInfo

func (api API) BatchGetDevicesInfo(AppId int64, Devices string, optional openapi.M) (*BatchGetDevicesInfoResponse, error)

BatchGetDevicesInfo version 2015-08-27

required parameters:

name: AppId, type: int64
name: Devices, type: string

optional parameters:

name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) PushByteMessage

func (api API) PushByteMessage(AppId int64, PushContent string, SendType int, optional openapi.M) (*PushByteMessageResponse, error)

PushByteMessage version 2015-08-27

required parameters:

name: AppId, type: int64
name: PushContent, type: string
name: SendType, type: int

optional parameters:

name: Accounts, type: string
name: DeviceIds, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) RevertRpc

func (api API) RevertRpc(AppId int64, DeviceId, RpcContent string, TimeOut int, optional openapi.M) (*RevertRpcResponse, error)

RevertRpc version 2015-08-27

required parameters:

name: AppId, type: int64
name: DeviceId, type: string
name: RpcContent, type: string
name: TimeOut, type: int

optional parameters:

name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

type BatchGetDevicesInfoResponse

type BatchGetDevicesInfoResponse struct {
	DeviceInfos struct {
		DeviceInfo []struct {
			DeviceId string
			IsOnline bool
			Status   int
		}
	}
}

BatchGetDevicesInfoResponse represents the response of the api BatchGetDevicesInfo.

type PushByteMessageResponse

type PushByteMessageResponse struct {
	ResponseId string
}

PushByteMessageResponse represents the response of the api PushByteMessage.

type RevertRpcResponse

type RevertRpcResponse struct {
	ResponseContent string
	RpcCode         string
}

RevertRpcResponse represents the response of the api RevertRpc.

Jump to

Keyboard shortcuts

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