Hello @Hiroki.Ito
I'm trying to get the API to work with postman or curl. I am not a software developer. I do not know much. But when I try to try the curl you sent, I get an error. Please help.
If I have other questions about api, can I write to you?
1 - Request cmd :
curl -X POST -H “Content-Type: application/vnd.appd.cntrl+protobuf;v=1” “https://appd/controller/api/oauth/access_token” -d‘grant_type=client_credentials&client_id=Hyetest@customer1&client_secret=36fac97b-xxx-416f-ac4a-d72766d4c073"’
Grant type value not specified.'client_id' is not recognized as an internal or external command, operable program or batch file. 'client_secret' is not recognized as an internal or external command, operable program or batch file.
2 - Postman Request :
curl -X POST \ https://appd/controller/api/oauth/access_token \ -H 'authorization: Basic aGFsZXJvbEBjdXN0b21lcjE6Q3liZXJlcmVuNzI5Nw==' \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -d grant_type=36fac97b-1930-xxx-ac4a-d72799d4c073
Response :
No enum constant com.singularity.ee.controller.servlet.api.OAuthAccessTokenResource$GrantType.36FAC97B-xxx-416F-AC4A-D72766D4C073curl: (6) Could not resolve host: \ curl: (6) Could not resolve host: Basic curl: (6) Could not resolve host: aGFsZXJvbEBjdXN0b21lcjE6Q3liZXJlcmVuNzI5Nw==' curl: (6) Could not resolve host: \ curl: (6) Could not resolve host: no-cache' curl: (6) Could not resolve host: \ curl: (6) Could not resolve host: application curl: (6) Could not resolve host: \
https://docs.appdynamics.com/4.5.x/en/extend-appdynamics/appdynamics-apis/api-clients
... View more