Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.
/ go-apiaiclient Public archive

Request messages from api.ai like what?!!

Notifications You must be signed in to change notification settings

m90/go-apiaiclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-apiaiclient

Build Status godoc

request messages from api.ai like what

DEPRECATION NOTICE

This library is built against the v1 API of api.ai / Dialogflow, which is in the process of being deprecated. When building something new, use the offical Go package for the V2 API instead. This package will not be maintained in any way anymore.

Installation

Use go get:

$ go get github.com/m90/go-apiaiclient

Usage

Instantiate a new client using New(token string, language string) and call Request(message string, sessionID string, contexts json.Marshaler):

client := apiaiclient.New("my_token", "en")
response, err := client.Request("Good morning Mr. Magpie", "session_id", &apiaiclient.ContextCollection{/*...*/})

Tests

Run the tests:

$ make

License

MIT © Frederik Ring

About

Request messages from api.ai like what?!!

Resources

Stars

Watchers

Forks

Packages

No packages published