Popularity
4.8
Growing
Activity
3.2
Declining
92
15
20

Programming language: Go
Tags: Third-party APIs    
Latest version: v1.0.9

wit-go alternatives and similar packages

Based on the "Third-party APIs" category

Do you think we are missing an alternative of wit-go or a related project?

Add another 'Third-party APIs' Package

README

wit.ai

Build Status GoDoc Go Report Card

This repository is community-maintained. We gladly accept pull requests. Please see the Wit HTTP Reference for all supported endpoints.

Go client for wit.ai HTTP API.

Install

go get -u github.com/wit-ai/wit-go

Usage

package main

import (
    "os"
    "fmt"

    witai "github.com/wit-ai/wit-go"
)

func main() {
    client := witai.NewClient(os.Getenv("WIT_AI_TOKEN"))
    // Use client.SetHTTPClient() to set custom http.Client

    msg, _ := client.Parse(&witai.MessageRequest{
        Query: "hello",
    })
    fmt.Printf("%v", msg)
}

Testing

Both Unit / Integration tests are executed by TravisCI.

Unit tests

go test -race -v

Integration tests

Integration tests are connecting to real Wit.ai API, so you need to provide a valid token:

export WITAI_INTEGRATION_TOKEN=your_secret_token_here
go test -v -tags=integration

License

The license for wit-go can be found in LICENSE file in the root directory of this source tree.


*Note that all licence references and agreements mentioned in the wit-go README section above are relevant to that project's source code only.