hi MaraniHi @rccaj,
I get the session key this way and use all the way for other API calls:
You need to use a POST method to send a request to "cPanelUrl:2083/login/?login_only=1" and for the parameters you need to pass credentials like "user=cpanelUsername&pass=#cpanelPassword".
The response would be like:
After getting this you can get the token (session key) using a JSON parser, regex or whatever you use.Code:
TIP: Use getpostman.com or servistate.com to make sure it works.
Hope that helps.
can you write a example code ?