Skip to content

Instantly share code, notes, and snippets.

@dergoegge
Created March 14, 2019 11:22
Show Gist options
  • Save dergoegge/665d235819429d74c9d448226ec1eba3 to your computer and use it in GitHub Desktop.
Save dergoegge/665d235819429d74c9d448226ec1eba3 to your computer and use it in GitHub Desktop.
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