Search code examples
google-app-enginegoogle-apigoogle-appsgoogle-api-clientgoogle-apps-marketplace

How can I create new project, OAuth key and P12 key in google console developer using Js/Java for google marketplace app


My goal is to create a new project, generate 'Oauth key' and 'Service account key(p12 key)' in google developer console using JS/Java code for my google market place app. How can i achieve that?

Note: I want to make an app that will automate project creation and key creation when someone installs it from the marketplace. Right now I have to create a new project and a key manually for every new client that we onboard


Solution

  • For service account keys, you can use the Google Identity and Access Management API. There is currently no public API for creating OAuth clients.