Is it possible to create new hosting projects by API, or another non-interactive method on Google Firebase?
I already tried Firebase tools with a token, but it says that it is only possible to create a new project on Firebase Console.
Some context: My project allows users to create static websites online and we are searching for solutions to host these sites. Firebase would be a great solution, but only if I could integrate the user's new project into my system, with Firebase projects.
The API reference documentation provides detailed information for each of the classes and methods in the Firebase SDK. Choose your preferred platform from the list below.
Choosing between the two comes down to your requirements. If you want your app to have a real-time database, you should go with Firebase. If you require more efficient queries during development, you should pick REST APIs. You can also combine the two by having a Firebase database attached to your REST API.
However, when you want to access multiple projects from a single application, you'll need a distinct Firebase application object to reference each one individually. It's up to you to initialize these other instances.
Updated (2018-11-07)
It is now possible to create with the Firebase Management API. Through this same API you can get a list of projects, add an app to an existing project, and list the apps in a project.
Hi!
public static void AddFirebase() { var request = new AddFirebaseRequest(); var operationFirebase1 = _firebaseManagementService.Projects.AddFirebase(request, "projects/" + CloudManager.ProjectId).Execute(); WaitOperation(operationFirebase1, "Firebase"); }
My sample creating a new Firebase project by API:https://github.com/Denys2211/Firebase-cloud-messaging
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With