m3o-go icon indicating copy to clipboard operation
m3o-go copied to clipboard

Failure when using the place service to do a search

Open kevin-DL opened this issue 2 years ago • 9 comments

Good morning. First of all thank you for providing a library.

I am having trouble making a search using the library. The code i use is taken from the documentation

placeService := place.NewPlaceService(os.Getenv("M3O_API_TOKEN"))
	rsp, err := placeService.Search(&place.SearchRequest{
		Query: "nando's",
		Type:  "restaurant",
	})

However when i run it, i get the following error json: cannot unmarshal array into Go struct field Result.results.opening_hours of type string

Am i doing anything wrong?

go version go1.17.7 Fiber v2.29.0

kevin-DL avatar Mar 09 '22 14:03 kevin-DL