Files
2022-01-12 15:03:53 +00:00
..
2021-12-09 15:06:12 +00:00
2022-01-12 15:03:53 +00:00

Answer

An m3o.com API. For example usage see m3o.com/answer/api.

Endpoints:

Question

Ask a question and receive an instant answer

https://m3o.com/answer/api#Question

package example

import(
	"fmt"
	"os"

	"go.m3o.com/answer"
)

// Ask a question and receive an instant answer
func AskAquestion() {
	answerService := answer.NewAnswerService(os.Getenv("M3O_API_TOKEN"))
	rsp, err := answerService.Question(&answer.QuestionRequest{
		Query: "microsoft",

	})
	fmt.Println(rsp, err)
	
}