Created
March 14, 2019 11:22
-
-
Save dergoegge/665d235819429d74c9d448226ec1eba3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { google } = require('googleapis'); | |
const authClient = google.auth.fromJSON(require('./serviceAccount.json')) | |
const rules = google.firebaserules({ | |
version: "v1", | |
auth: authClient | |
}); | |
return rules.projects.rulesets.list({ | |
name: 'projects/<my-project>', | |
}).then(res => console.log(res)).catch(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment