dialogflow / dialogflow-nodejs-client

Node.js SDK for Dialogflow
Apache License 2.0
659 stars 287 forks source link

changing endpoint version #71

Open nullbringer opened 7 years ago

nullbringer commented 7 years ago

updated the endpoint according to api.ai console.

googlebot commented 7 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


nullbringer commented 7 years ago

I signed it!

googlebot commented 7 years ago

CLAs look good, thanks!

sstepashka commented 7 years ago

@urbangeek Where you found information about this endpoint? Please, follow documentation: https://api.ai/docs/reference/agent/query

nullbringer commented 7 years ago

Oh. In May v2 of API.ai went live right? capture

If I click on Copy CURL button I'm getting something like: curl 'https://api.api.ai/api/query?v=20150910&query=hey&lang=en&sessionId=XXX

I changed the endpoint in apiai module. It's working fine for me, so I thought devs didn't find time to update the SDK as well as documentation. Correct me if I'm wrong. I don't pretend to be an expert on this.

Cheers

dimm0 commented 6 years ago

Any chance to update this? Not working without this change..