Docs: https://developers.tiktok.com/doc/login-kit-web
go get -u github.com/rostyslavio/go-tiktok-kit
-
Login Kit for Web
https://developers.tiktok.com/doc/login-kit-web -
Share Sound
https://developers.tiktok.com/doc/sound-kit-share-sound -
Share Video
https://developers.tiktok.com/doc/web-video-kit-with-web
package main
import (
ttkit "github.com/rostyslavio/go-tiktok-kit"
"log"
)
func main() {
kit, _ := ttkit.NewTikTokKit(
ttkit.WithClientKey("CLIENT_KEY"),
ttkit.WithRedirectUri("https://github.com/rostyslavio/go-tiktok-kit"),
)
state := "RANDOM_STRING"
uri, _ := kit.GetAuthorizeRedirect([]string{ttkit.TikTokReadProfileScope}, state)
log.Println(uri);
//log.Printf(redirect)
}
This package is licensed under the MIT license. See LICENSE for details.