1
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
package tiktok
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi"
|
||||
"net/http"
|
||||
"sync"
|
||||
)
|
||||
|
||||
const (
|
||||
BaseURL = "https://open.douyin.com"
|
||||
TiktokTokenUrl = "/oauth/access_token/"
|
||||
TiktokRefreshTokenUrl = "/oauth/renew_refresh_token/"
|
||||
)
|
||||
|
||||
type API struct {
|
||||
clientSecret string // 应用唯一标识对应的密钥
|
||||
clientKey string // 应用唯一标识
|
||||
client *http.Client
|
||||
config *platformapi.APIConfig
|
||||
locker sync.RWMutex
|
||||
|
||||
msgToken string
|
||||
msgKey string
|
||||
}
|
||||
//
|
||||
//import (
|
||||
// "git.rosy.net.cn/baseapi/platformapi"
|
||||
// "net/http"
|
||||
// "sync"
|
||||
//)
|
||||
//
|
||||
//const (
|
||||
// BaseURL = "https://open.douyin.com"
|
||||
// TiktokTokenUrl = "/oauth/access_token/"
|
||||
// TiktokRefreshTokenUrl = "/oauth/renew_refresh_token/"
|
||||
//)
|
||||
//
|
||||
//type API struct {
|
||||
// clientSecret string // 应用唯一标识对应的密钥
|
||||
// clientKey string // 应用唯一标识
|
||||
// client *http.Client
|
||||
// config *platformapi.APIConfig
|
||||
// locker sync.RWMutex
|
||||
//
|
||||
// msgToken string
|
||||
// msgKey string
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user