Skip to content

Commit

Permalink
[*] minor readme updates, + updating version due to fixes of other co…
Browse files Browse the repository at this point in the history
…ntributor
  • Loading branch information
Gugic committed Feb 22, 2017
1 parent 2ef657c commit 18ae4e8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Or you can install it with nodejs and that import as es6 (or .ts) module. See be

```javascript

const client = new ApiAi.ApiAiClient('YOUR_ACCESS_TOKEN');
const client = new ApiAi.ApiAiClient({accessToken: 'YOUR_ACCESS_TOKEN'});
let promise = client.textRequest(longTextRequest);

promise
Expand Down Expand Up @@ -96,6 +96,15 @@ Code above should work for both TypeScript and simple ES6

*Note:* If you are going to build es5 version of your bundle with ApiAiClient inside, please add some typings for promises (e.g. @types/es6-promise)

You also can import and use all defined interfaces:

```javascript
import {IRequestOptions, IServerResponse} from "api-ai-javascript/ApiAiClient"

```

You can find full list of interfaces [here](ts/Interfaces.ts)

# Development

* Checkout from this repository, do not forget to switch to "v2" branch
Expand All @@ -113,6 +122,9 @@ Code above should work for both TypeScript and simple ES6

## Changelog

## 2.0.0-beta.15
* minor fixes, minor readme updates

## 2.0.0-beta.14
* minor fixes
* GainNode removed (for now) as non-working in current setup
Expand Down
4 changes: 2 additions & 2 deletions demo/typescript-project/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "api-ai-javascript-typescript-demo-project",
"version": "2.0.0-beta.14",
"version": "2.0.0-beta.15",
"description": "Javascript SDK for https://api.ai/ typescript demo project",
"devDependencies": {
"@types/es6-promise": "0.0.32",
"api-ai-javascript": "^2.0.0-beta.14",
"api-ai-javascript": "^2.0.0-beta.15",
"awesome-typescript-loader": "^3.0.0-beta.18",
"typescript": "^2.1.5",
"webpack": "^2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-ai-javascript",
"version": "2.0.0-beta.14",
"version": "2.0.0-beta.15",
"description": "Javascript SDK for https://api.ai/",
"main": "index",
"dependencies": {
Expand Down

0 comments on commit 18ae4e8

Please sign in to comment.