func (api *API) GetContext() *context.Context {
	return api.ctx
}
GetContext get Context
package open
import (
	"github.com/amorist/douyin/open/config"
	"github.com/amorist/douyin/open/context"
	"github.com/amorist/douyin/open/credential"
	"github.com/amorist/douyin/open/enterprise"
	"github.com/amorist/douyin/open/image"
	"github.com/amorist/douyin/open/oauth"
	"github.com/amorist/douyin/open/pay"
	"github.com/amorist/douyin/open/poi"
	"github.com/amorist/douyin/open/search"
	"github.com/amorist/douyin/open/user"
	"github.com/amorist/douyin/open/video"
)
type API struct {
	ctx *context.Context
}
func NewOpenAPI(cfg *config.Config) *API {
	defaultAkHandle := credential.NewDefaultAccessToken(cfg.ClientKey, cfg.ClientSecret, credential.CacheKeyPrefix, cfg.Cache)
	ctx := &context.Context{
		Config:            cfg,
		AccessTokenHandle: defaultAkHandle,
	}
	return &API{ctx: ctx}
}
func (api *API) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle) {
	api.ctx.AccessTokenHandle = accessTokenHandle
}