{"_id":"@7nohe/play-console-report-client","_rev":"1-fbeba940184278cb6a1d091a1ded44c3","name":"@7nohe/play-console-report-client","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@7nohe/play-console-report-client","version":"0.1.0","description":"Node.js library for getting report data from Google Play Console","main":"dist/index.js","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"keywords":["google","android","playconsole","client","googleplay","report","api","nodejs"],"author":{"name":"Daiki Urata","url":"@7nohe"},"repository":{"type":"git","url":"git+https://github.com/7nohe/play-console-report-client.git"},"homepage":"https://github.com/7nohe/play-console-report-client","bugs":{"url":"https://github.com/7nohe/play-console-report-client/issues"},"license":"MIT","devDependencies":{"@antfu/eslint-config":"^0.26.1","@types/node":"^18.7.6","dotenv":"^16.0.1","eslint":"^8.22.0","eslint-config-prettier":"^8.5.0","prettier":"^2.7.1","tsup":"^6.2.2","typescript":"^4.7.4","vite-node":"^0.22.0"},"dependencies":{"@google-cloud/storage":"^6.4.1","chardet":"^1.4.0","csv-parser":"^3.0.0","dayjs":"^1.11.5"},"scripts":{"build":"tsup","debug":"pnpm run build && vite-node ./example/index.ts","lint":"eslint src/**/*.ts","release":"npx git-ensure -a && npx bumpp --commit --tag --push"},"types":"./dist/index.d.ts","_id":"@7nohe/play-console-report-client@0.1.0","_integrity":"sha512-ha7nZACEOGUDpcYpkXNG04mr4KSYT4a+ZN/lDT28KUAgx+lyMlp+uBeZAInNbJ1+xuyB+5uvKsv8TWGuOfQaZA==","_resolved":"/private/var/folders/w5/gdgp75rs48742wn5mt359rjw0000gn/T/d33ff613c5bbb82b8709c2a449a874ff/7nohe-play-console-report-client-0.1.0.tgz","_from":"file:7nohe-play-console-report-client-0.1.0.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-ha7nZACEOGUDpcYpkXNG04mr4KSYT4a+ZN/lDT28KUAgx+lyMlp+uBeZAInNbJ1+xuyB+5uvKsv8TWGuOfQaZA==","shasum":"5abd5d84fa1f6b16c14ee13127c6fe571e7c361b","tarball":"https://registry.npmjs.org/@7nohe/play-console-report-client/-/play-console-report-client-0.1.0.tgz","fileCount":6,"unpackedSize":7867,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA87hIxwG1cWJOG20toF6YC2U9GFDKY047li1ujjsZWGAiEApW48TbL/Z6wtnIvrt5svGM+6AY9wRkT6OQBoak9a8sQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAOrsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpY7RAAgEjIHtQ32nVeQa9cxDTDgbe7oQfO++7cjZCbaUIonkG03P0s\r\nntkJJnwG+XahxB6J7kdxw+gkf8fQOVPJBoBCWDTexaQWcv5UDxWRx17m28R/\r\nirMt0o1B4EPLrocbWXSqzouYFD+2wxoBptolYXqaqJttzed0IE/uL0TN+lEn\r\nCiEwI9G8CSFGYHPEd2U9zOrgLy6Rnd/UO/3leGm2ROOpaQGoGVyU6YnjY3db\r\nFIV3DKbL+0sr+onjrGYwWgji8G1Znz3Tadzo1HhTSAGeV4CR2M9e2EHkC494\r\nQEyvYUXA8RWZgyLBHoqZX/xeDmHruCOnrCZSe5UuCXqFvWnyLh4GTN4JyU5p\r\n4RuMYtvIEbWthihdTuAFEIhtPZ1ooqdGU7Jw2vfcCeqgu9e7SKUcs9tEQNlR\r\n7x4/Uo9fRBK+tdCOC+ECwej4HGbS2OOLP6EpeTANRMY6KjA8CaHKFM269/Lq\r\nR2afDtQBdmXXrCAehphlZmENeSrphkrJ31P6m47Lw0DzKsmKswOlyse+r9ev\r\n6dWD8KkxQEofJPTz4y5S2NUN1M0gIXrdIKv9Rhzw1dCDoc9mhoNIY45efsDS\r\nDCT68f8Evw+YOmie0a7sbql1oFL9ync3E/s6StDQ7WtXoIPssjtU0j4No/gE\r\nmvZvhGyyyjoHm8gOZFqJK37kMEVRbJnKlME=\r\n=JvPY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/play-console-report-client_0.1.0_1661004524056_0.4197698536202932"},"_hasShrinkwrap":false},"0.1.1":{"name":"@7nohe/play-console-report-client","version":"0.1.1","description":"Node.js library for getting report data from Google Play Console","main":"dist/index.js","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"keywords":["google","android","playconsole","client","googleplay","report","api","nodejs"],"author":{"name":"Daiki Urata","url":"@7nohe"},"repository":{"type":"git","url":"git+https://github.com/7nohe/play-console-report-client.git"},"homepage":"https://github.com/7nohe/play-console-report-client","bugs":{"url":"https://github.com/7nohe/play-console-report-client/issues"},"license":"MIT","devDependencies":{"@antfu/eslint-config":"^0.26.1","@types/node":"^18.7.6","dotenv":"^16.0.1","eslint":"^8.22.0","eslint-config-prettier":"^8.5.0","prettier":"^2.7.1","tsup":"^6.2.2","typescript":"^4.7.4","vite-node":"^0.22.0"},"dependencies":{"@google-cloud/storage":"^6.4.1","csv-parser":"^3.0.0","dayjs":"^1.11.5","strip-bom-stream":"^5.0.0"},"scripts":{"build":"tsup","debug":"pnpm run build && vite-node ./example/index.ts","lint":"eslint src/**/*.ts","release":"npx git-ensure -a && npx bumpp --commit --tag --push"},"types":"./dist/index.d.ts","_id":"@7nohe/play-console-report-client@0.1.1","_integrity":"sha512-C3u1ZAxSJmIgK20JQM9MlzADuukODx9k86t5ZB7/CT1Z2mYpIf6htW5ZjKovil1J2jTS9K4C0C7cGHYquansYA==","_resolved":"/private/var/folders/w5/gdgp75rs48742wn5mt359rjw0000gn/T/570a8c33e2fdff1b3005ad0dabe3dd04/7nohe-play-console-report-client-0.1.1.tgz","_from":"file:7nohe-play-console-report-client-0.1.1.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-C3u1ZAxSJmIgK20JQM9MlzADuukODx9k86t5ZB7/CT1Z2mYpIf6htW5ZjKovil1J2jTS9K4C0C7cGHYquansYA==","shasum":"1c4cece5b529960dc6a2bf607d32db851395a70d","tarball":"https://registry.npmjs.org/@7nohe/play-console-report-client/-/play-console-report-client-0.1.1.tgz","fileCount":6,"unpackedSize":7790,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFP50DTyxORBQHijOzMTAkRyLBO4Kd3Q7ZrfJQcCkyfgAiBO/Fkz5CZd09ssRPbKehhp46vT0tEJ/9WKdRqhFRc7aA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAjB8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdVRAAmAetrf2Wtt504ijer4ModIpfVZp2Vo9v4WeLWy5Y+8XuuI7K\r\n0SVVC5krJ3JM+KV8OcksNU9CdBVXe7lAVYzPyQF8c5yL47HjQXR6+3g6O4ik\r\n9HnuRX+1hRAIbL8kg/KfgZghyR6OV/9Nyo6NC6PXOpzEPwMe8ZLtFKfHEhVs\r\nquq/P45Oio8u6gLOq7rDOI+nmuieSUiLZjTeMKpIhOU6omMK2JBxnTnhnERu\r\ny6Sm/SndpAPAeqV5lehz/HlSQpIy6bxPJErpakmY9aC2pKJ0/VNjVHcWAOn/\r\nScxH1rydO9XhTLZKV54C8CjufzAgIjjnjELWjHWFriP+dOBgsN7gSOL+NtVZ\r\n9DKprA9Y31ONXQF20KfQs9AwL2zBQcMSIV2wpfqBPmE/P/0cWhiMTQOt0X6S\r\nYGrf9N4OnyaEnsstH3IREPp7pgrdZgYTGb0isJmcXPpzOsHNMYC/haElc9CS\r\n8fkoG3Zce1U/gQ/c4tJ3wuaXp0R3/0VCVWX9nJ+0rYtYrTt5c7EDTRcJwh08\r\nqHo+didQYmjU8/tFmcD9rZaHXQRGHtN01KOSTKoWaDdkZNrwiX40R0xh27mN\r\nnVdcw0S9kDDRK+fWmKwtmF49eARVYNmlVAkqZEqTnyqIttmNSYo3L2dyrNuj\r\ns1wVwoLoXYLnoxUj6xEZ+xY+5Fq9NaBBXhw=\r\n=kEaj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/play-console-report-client_0.1.1_1661087868493_0.555349179936766"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-20T14:08:44.002Z","0.1.0":"2022-08-20T14:08:44.269Z","modified":"2022-08-21T13:17:48.822Z","0.1.1":"2022-08-21T13:17:48.753Z"},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"description":"Node.js library for getting report data from Google Play Console","homepage":"https://github.com/7nohe/play-console-report-client","keywords":["google","android","playconsole","client","googleplay","report","api","nodejs"],"repository":{"type":"git","url":"git+https://github.com/7nohe/play-console-report-client.git"},"author":{"name":"Daiki Urata","url":"@7nohe"},"bugs":{"url":"https://github.com/7nohe/play-console-report-client/issues"},"license":"MIT","readme":"# @7nohe/play-console-report-client\n\n>  Node.js library for getting report data from Google Play Console\n\n## Install\n\n```bash\n$ npm install @7nohe/play-console-report-client\n```\n\n## Usage\n\n```ts\nimport { createClient } from \"@7nohe/play-console-report-client\";\n\nconst client = createClient({\n  projectId: '<YOUR-PROJECT-ID>',\n  credentials: {\n    client_email: '<YOUR-CLIENT-EMAIL>',\n    private_key: '<YOUR-PRIVATE-KEY>',\n  },\n});\n\nconst run = async () => {\n  const statisticsReports = await client.getStatisticsReports({\n    reportMonth: \"202207\",\n    bucketName: '<YOUR-BUCKET-NAME>',\n    packageName: '<YOUR-PACKAGE-NAME>',\n  });\n  console.log(statisticsReports); \n}\n\nrun();\n```\n\n### `credentials`\n\nYou can get credential information (`client_email` and `private_key`) from a service account key.\n\n[Here](https://developers.google.com/android-publisher/getting_started) is a guide to creating a service account key.\n\nAlso, you need to enable Google Play Developer API.\n\n\n### `bucketName`\n\nYou can find your bucket name in [Play Console](https://play.google.com/apps/publish/).\n\nClick `Download reports Reports`, and select `Reviews`, `Statistics`, or `Financial`.\n\nYou can copy your Google Cloud Storage URI by clicking the `Copy Cloud Storage URI` button next to the corresponding section header on the Download reports pages.\n\n![copy-cloud-storage-uri](/img/copy-cloud-storage-uri.png)\n\nYour Google Cloud Storage URI should look like this.\n\n```\ngs://<YOUR-BUCKET-NAME>/stats/installs/\n```\n\n### Accessing to Google Cloud resources without using a service account key\n\nIf your environment supports OpenID Connect (OIDC), we recommend using [Workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation).\n\nYou will be able to access GCP resources without storing credentials in your environment.\n\n```ts\nimport { createClient } from \"@7nohe/play-console-report-client\";\n\nconst client = createClient({\n  projectId: '<YOUR-PROJECT-ID>',\n  // No credentials required.\n});\n```\n\n## API Documentation\n\nCurrently, only Statistics Reports API is available.\n\n```ts\ndeclare const createClient: (clientOptions: ClientOptions) => {\n    getStatisticsReports: (options: GetStatisticsReportsOptions) => Promise<StatisticsReportData[]>;\n};\n```\n","readmeFilename":"README.md"}