Skip to content

rostyslavio/go-tiktok-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TikTok Kit for Go

Docs: https://developers.tiktok.com/doc/login-kit-web

Installation

go get -u github.com/rostyslavio/go-tiktok-kit

TikTok Documentation

Examples

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)
}

Licence

This package is licensed under the MIT license. See LICENSE for details.