Skip to content

Commit

Permalink
Remove subscription key from integration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil Skachkov committed Mar 30, 2016
1 parent eb5e498 commit d3a499f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Use this type of integration if you want quickly integrate natural language proc
2. Add the following code to your activity's `onCreate` function

```java
final AIConfiguration config = new AIConfiguration("YOUR_ACCESS_TOKEN", "YOUR_SUBSCRIPTION_KEY",
final AIConfiguration config = new AIConfiguration("YOUR_ACCESS_TOKEN",
AIConfiguration.SupportedLanguages.English,
AIConfiguration.RecognitionEngine.System);

Expand Down Expand Up @@ -73,7 +73,7 @@ Use this type of integration if you want quickly integrate natural language proc
});
```

3. Replace "YOUR_ACCESS_TOKEN" and "YOUR_SUBSCRIPTION_KEY" with keys from your development console on the [API.AI](http://www.api.ai) site.
3. Replace "YOUR_ACCESS_TOKEN" with key from your development console on the [API.AI](http://www.api.ai) site.
4. Write your custom code instead of `// process response here` and `//process error here` to process success and error responses from the api.ai.

# Integration with AIService
Expand All @@ -93,11 +93,10 @@ Use the following steps:
private AIService aiService;
```

3. In the OnCreate method, add the following line to set up the configuration to use Google speech recognition. Replace CLIENT_ACCESS_TOKEN and SUBSCRIPTION KEY with your client access token and subscription key.
3. In the OnCreate method, add the following line to set up the configuration to use Google speech recognition. Replace CLIENT_ACCESS_TOKEN with your client access token.

```java
final AIConfiguration config = new AIConfiguration("CLIENT_ACCESS_TOKEN",
"SUBSCRIPTION_KEY",
AIConfiguration.SupportedLanguages.English,
AIConfiguration.RecognitionEngine.System);
```
Expand Down Expand Up @@ -183,7 +182,6 @@ AIDialog is simple and ready to use dialog for making voice requests. All you ne

```java
final AIConfiguration config = new AIConfiguration("CLIENT_ACCESS_TOKEN",
"SUBSCRIPTION_KEY",
AIConfiguration.SupportedLanguages.English,
AIConfiguration.RecognitionEngine.System);
```
Expand Down

0 comments on commit d3a499f

Please sign in to comment.