package lib import ( "log" "testing" ) func TestGLM_GetAccessToken(t *testing.T) { apiKey := "64ec3be253e747ef94d4c3ea1a5cb1cf" publicKey := "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM+QkW9WXqbZLE5EUEB9Mf8qjr2TNteCQhdAq8YC0MignQC5nWAKM7kRnRI68T5NlJuaWA37WFQLjo8pB33Z6kECAwEAAQ==" glm, _ := NewGLM(apiKey, publicKey) res, err := glm.GetAccessToken() log.Println(res, err) } //chatGLM新版