You can use the REST APIs provided with WSO2 EMM 2.2.0 to publish an App programmatically. Refer the below steps.
- First you need to generate an access token. You can refer the [1] for that.
Sample Request
Sample Responsecurl -k -H "Content-Type: application/json" -X POST -d '{"owner":"admin","clientName":"admin_emm","grantType":"refresh_token password client_credentials","tokenScope":"prod"}' https://localhost:9443/dynamic-client-web/register - Encode the
<CLIENT_ID>:<CLIENT_SECRET>using base64 encoder