tribally report logic

This commit is contained in:
2025-05-08 10:27:30 +08:00
parent 5cbce1e3c9
commit b002ae3ad2
4 changed files with 127 additions and 11 deletions

View File

@@ -0,0 +1,25 @@
package tribally
import (
"fmt"
"github.com/stretchr/testify/require"
"testing"
)
const (
apiKey = "088847b7172bdffa1eb564a581bcf903"
)
func TestBindTribally(t *testing.T) {
url, err := BindTribally(apiKey, "lhj168os@gmail.com")
require.Nil(t, err)
fmt.Println(url)
}
func TestPostUserChapter(t *testing.T) {
err := PostUserChapter(apiKey, UserChapter{
Email: "lhj168os@gmail.com",
Chapter: 3,
})
require.Nil(t, err)
}