~thrrgilag/woodstock

woodstock/client_info_test.go -rw-r--r-- 394 bytes
62b10b5cMorgan McMillian Update for new project location and module name 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package woodstock

import (
	"testing"
	"time"
)

func TestGetClient(t *testing.T) {
	config, err := GetConfig()
	if err != nil {
		t.Error(err)
	}
	idstring := "fcYLbaFw47KMtMGZ9OBn7CXFLtxAkqDB"
	client := NewClient(config.ClientID, "")
	client.SetAccessToken(config.AccessToken)
	res, err := client.GetClient(idstring)
	if err != nil {
		t.Error(err)
	}
	t.Log(res.Meta)
	time.Sleep(Delay)
}