Skip to content

Commit

Permalink
docs: add page management code samples (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
galz10 authored Sep 8, 2021
1 parent 3d4f15a commit 6ea9162
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/google-cloud-dialogflow-cx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,13 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow-
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Create-agent | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-agent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-agent.js,samples/README.md) |
| Create-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-page.js,samples/README.md) |
| Delete-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/delete-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/delete-page.js,samples/README.md) |
| Detect-intent-audio | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-audio.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/detect-intent-audio.js,samples/README.md) |
| Detect-intent-streaming | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-streaming.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/detect-intent-streaming.js,samples/README.md) |
| Detect-intent-text | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-text.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/detect-intent-text.js,samples/README.md) |
| List-intents | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/list-intents.js,samples/README.md) |
| List-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/list-page.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Update-intent | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/update-intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/update-intent.js,samples/README.md) |

Expand Down
5 changes: 4 additions & 1 deletion packages/google-cloud-dialogflow-cx/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io"
"img.shields.io",
"https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-page.js",
"https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/delete-page.js",
"https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-page.js"
],
"silent": true,
"concurrency": 10
Expand Down
54 changes: 54 additions & 0 deletions packages/google-cloud-dialogflow-cx/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Create-agent](#create-agent)
* [Create-page](#create-page)
* [Delete-page](#delete-page)
* [Detect-intent-audio](#detect-intent-audio)
* [Detect-intent-streaming](#detect-intent-streaming)
* [Detect-intent-text](#detect-intent-text)
* [List-intents](#list-intents)
* [List-page](#list-page)
* [Quickstart](#quickstart)
* [Update-intent](#update-intent)

Expand Down Expand Up @@ -52,6 +55,40 @@ __Usage:__



### Create-page

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-page.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-page.js,samples/README.md)

__Usage:__


`node samples/create-page.js`


-----




### Delete-page

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/delete-page.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/delete-page.js,samples/README.md)

__Usage:__


`node samples/delete-page.js`


-----




### Detect-intent-audio

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-audio.js).
Expand Down Expand Up @@ -120,6 +157,23 @@ __Usage:__



### List-page

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-page.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/list-page.js,samples/README.md)

__Usage:__


`node samples/list-page.js`


-----




### Quickstart

View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/quickstart.js).
Expand Down

0 comments on commit 6ea9162

Please sign in to comment.