core

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_URL string = "https://ad.oceanengine.com/open_api/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SdkClient

type SdkClient struct {
	AppId  string
	Secret string
	// contains filtered or unexported fields
}

func NewSdkClient

func NewSdkClient(appId string, secret string) *SdkClient

NewSdkClient 创建SdkClient

func (SdkClient) DisableSandBox

func (c SdkClient) DisableSandBox()

DisableSandBox 禁用沙箱

func (*SdkClient) Get

func (c *SdkClient) Get(gw string, req model.GetRequest, resp model.Response, accessToken string) error

Get get api

func (*SdkClient) Post

func (c *SdkClient) Post(gw string, req model.PostRequest, resp model.Response, accessToken string) error

Post post api

func (*SdkClient) SetDebug

func (c *SdkClient) SetDebug(debug bool)

SetDebug 设置debug模式

func (*SdkClient) Upload

func (c *SdkClient) Upload(gw string, req model.UploadRequest, resp model.Response, accessToken string) error

Upload multipart/form-data post

func (SdkClient) UseSandBox

func (c SdkClient) UseSandBox()

UseSandBox 启用沙箱

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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