Closed perelin closed 6 years ago
OK, stupid me. The anaconda API client needs to be initialized with personal Access Token + Secret as well. So, this works fine:
package main
import (
"fmt"
"github.com/ChimeraCoder/anaconda"
)
func main() {
api := naconda.NewTwitterApiWithCredentials(ACCESS_TOKEN, ACCESS_TOKEN_SECRET, "your-consumer-key", "your-consumer-secret")
authURL, _, err := api.AuthorizationURL("http://CALLBACKURL")
if err != nil {
fmt.Println(err.Error())
}
fmt.Println(authURL)
}
Hi,
I´m trying to get an AuthorizationURL with anaconda but keep running into this:
Here is my full code snippet to reproduce
go version go1.10 darwin/amd64
Any ideas?