tribally api test
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user