mlabouardy / dialogflow-go-client

Go library for DialogFlow (API.AI) 😎

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json: cannot unmarshal object into Go value of type []models.IntentAgent

katopz opened this issue · comments

When I try to use

	intents, err := client.IntentsFindAllRequest()
	if err != nil {
		log.Fatal(err)
	}
	for _, intent := range intents {
		fmt.Println(intent.Name)
	}

I got

json: cannot unmarshal object into Go value of type []models.IntentAgent

Even I didn't make any request yet, any hint?