tribally api test
This commit is contained in:
@@ -7,19 +7,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
apiKey = "088847b7172bdffa1eb564a581bcf903"
|
apiKey = "830019089b50205befaeeddb93eaf651"
|
||||||
|
userEmail = "katrinaever11@gmail.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBindTribally(t *testing.T) {
|
func TestBindTribally(t *testing.T) {
|
||||||
url, err := BindTribally(apiKey, "lhj168os@gmail.com")
|
url, err := BindTribally(apiKey, userEmail)
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
fmt.Println(url)
|
fmt.Println(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPostUserChapter(t *testing.T) {
|
func TestPostUserChapter(t *testing.T) {
|
||||||
err := PostUserChapter(apiKey, UserChapter{
|
err := PostUserChapter(apiKey, UserChapter{
|
||||||
Email: "lhj168os@gmail.com",
|
Email: userEmail,
|
||||||
Chapter: 3,
|
Chapter: 1,
|
||||||
})
|
})
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user