RomainVialard / FirebaseApp

Google Apps Script binding for Firebase Realtime Database
Apache License 2.0
116 stars 30 forks source link

Added new first level method: listProjects() #18

Open RomainVialard opened 5 years ago

RomainVialard commented 5 years ago

Provided ability to list all Firebase projects available to the user. https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects/list

JeanRemiDelteil commented 5 years ago

Instead of adding a bunch of new methods like listProjects() to the root, maybe we can follow the API structure ?: FirebaseApp.projects.list() FirebaseApp.projects.get() etc...

This would make it easy to understand the relation with the REST API, and also orderly support other API methods.

RomainVialard commented 5 years ago

In that case, should existing methods of the FirebaseApp lib be available at: FirebaseApp.projects.get().realtimeDatabaseInstance.setData() .getData() etc...?

or do we keep getDatabaseByUrl() and simply add .projects? Wouldn't it be weird to have the 2 different naming conventions?