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
For service account keys, you can use the Google Identity and Access Management API. There is currently no public API for creating OAuth clients.