Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to create a new Firebase project by API?

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.

like image 205
Roger Russel Avatar asked Jun 13 '16 19:06

Roger Russel


People also ask

Is there an API for Firebase?

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.

Should I use Firebase or REST API?

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.

Can you create multiple projects from a Firebase account?

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.


2 Answers

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.

like image 179
Frank van Puffelen Avatar answered Sep 23 '22 03:09

Frank van Puffelen


  • 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

like image 22
Denys Tsurkanovski Avatar answered Sep 22 '22 03:09

Denys Tsurkanovski