wit-ai / wit-go

Go client for wit.ai HTTP API
MIT License
156 stars 30 forks source link

App creation should return correct struct instead of an App #8

Closed thibaultleouay closed 5 years ago

thibaultleouay commented 5 years ago

According the wit.ai doc [1] when we create an app the response as the following structure { "access_token" : "NEW_ACCESS_TOKEN", "app_id" : "NEW_APP_ID" }

Then instead of returning an empty app the function CreateApp should return this structure instead of an empty App

[1] https://wit.ai/docs/http/20170307#post__apps_link

plutov commented 5 years ago

Fixed it in v1.0.1