Skip to content

Commit

Permalink
docs(sample): add runReport sample (#192)
Browse files Browse the repository at this point in the history
* Adds runReport

* Adds runReport test method and readme information

* Removes unnecessary module.exports as samples should be self contained

* Modifies strings to formatted strings for consistency

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
anweshan and gcf-owl-bot[bot] authored May 17, 2022
1 parent 74c5da5 commit e21be96
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/google-analytics-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-d
| Quickstart_json_credentials | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart_json_credentials.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart_json_credentials.js,samples/README.md) |
| Quickstart_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart_oauth2.js,samples/README.md) |
| Realtime | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/realtime.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/realtime.js,samples/README.md) |
| Run Report | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReport.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReport.js,samples/README.md) |



Expand Down
18 changes: 18 additions & 0 deletions packages/google-analytics-data/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* [Quickstart_json_credentials](#quickstart_json_credentials)
* [Quickstart_oauth2](#quickstart_oauth2)
* [Realtime](#realtime)
* [Run Report](#run-report)

## Before you begin

Expand Down Expand Up @@ -95,6 +96,23 @@ __Usage:__
`node samples/realtime.js`


-----




### Run Report

View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReport.js).

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

__Usage:__


`node samples/runReport.js`





Expand Down

0 comments on commit e21be96

Please sign in to comment.