tribally api test

This commit is contained in:
2025-05-09 20:20:48 +08:00
parent 1ecac5d626
commit 95712f0fc0

View File

@@ -7,19 +7,20 @@ import (
)
const (
apiKey = "088847b7172bdffa1eb564a581bcf903"
apiKey = "830019089b50205befaeeddb93eaf651"
userEmail = "katrinaever11@gmail.com"
)
func TestBindTribally(t *testing.T) {
url, err := BindTribally(apiKey, "lhj168os@gmail.com")
url, err := BindTribally(apiKey, userEmail)
require.Nil(t, err)
fmt.Println(url)
}
func TestPostUserChapter(t *testing.T) {
err := PostUserChapter(apiKey, UserChapter{
Email: "lhj168os@gmail.com",
Chapter: 3,
Email: userEmail,
Chapter: 1,
})
require.Nil(t, err)
}