Skip to content

Commit

Permalink
Merge pull request #35 from ZeroMcMuffin/master
Browse files Browse the repository at this point in the history
Updated Docs for ApiAiClient construction
  • Loading branch information
Gugic authored Feb 22, 2017
2 parents cf79a6e + d1a7736 commit 2ef657c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This SDK written with Typescript and all it's sources are available in this pack

import {ApiAiClient, ApiAiStreamClient} from "api-ai-javascript";

const client = new ApiAiClient('YOUR_ACCESS_TOKEN', {streamClientClass: ApiAiStreamClient});
const client = new ApiAiClient({accessToken: 'YOUR_ACCESS_TOKEN', streamClientClass: ApiAiStreamClient});
client

.textRequest('Hello!')
Expand All @@ -87,7 +87,7 @@ Or (to include only http client, without stream, to save some extra kilobytes ):
```javascript
import {ApiAiClient} from "api-ai-javascript/ApiAiClient"

const client = new ApiAiClient('YOUR_ACCESS_TOKEN');
const client = new ApiAiClient({accessToken: 'YOUR_ACCESS_TOKEN'});

```

Expand Down

0 comments on commit 2ef657c

Please sign in to comment.