Closed thibaultleouay closed 5 years ago
I had to create a custom type for the time as the time sent by the wit.ai api is not in the rfc3339 format.
Nice, thank you for working on this! Please check the integration tests, they failed on Travis CI.
The integration test TestIntegrationSamples also fail on master
@thibaultleouay master looks green - https://travis-ci.org/wit-ai/wit-go/branches. Have you tried it locally, you need to set WITAI_INTEGRATION_TOKEN locally.
Locally with my WITAI_INTEGRATION_TOKEN it works. Also on master I dont know how they passed.
The sample test makes this request when you dont set any SampleEntity
curl -XPOST 'https://api.wit.ai/samples?v=20170307' \ -H "Authorization: Bearer $YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '[{ "text": "I live in London", "entities": null }]'
Agree, locally it works well, I am merging this PR, and will investigate the tests after.
Add missing fields from app https://wit.ai/docs/http/20170307#get__apps__app_id_link