hi all,
sorry for noob question this is the first time looking at the WHM API.
im making an app and i want it to connect to the WHM API to create new accounts ect. after hours of trying (and failing) my hosting company told me to use the cpsess####### after logging in to access the api and that worked. the only problem is that to my understanding that number is generated for the session, so it wont work in different browsers, on different computers or at different times. this is a problem for me as my app will be used by lots of different people on different clients.
to my understanding i need to use the API Token feature which i have done however replacing cpsess with that does not work, i get the error "Token Denied." after doing some research i came across the create_user_session function, i might be reading it wrong but i think this should take the API Token and convert it or generate a cpsess######, however in the example it requires the cpsess######## so that doesnt work for me.
my goal is to be able to access the WHM API using the static API Token that i can put in the app.
any assistance will be greatly appreciated.
sorry for noob question this is the first time looking at the WHM API.
im making an app and i want it to connect to the WHM API to create new accounts ect. after hours of trying (and failing) my hosting company told me to use the cpsess####### after logging in to access the api and that worked. the only problem is that to my understanding that number is generated for the session, so it wont work in different browsers, on different computers or at different times. this is a problem for me as my app will be used by lots of different people on different clients.
to my understanding i need to use the API Token feature which i have done however replacing cpsess with that does not work, i get the error "Token Denied." after doing some research i came across the create_user_session function, i might be reading it wrong but i think this should take the API Token and convert it or generate a cpsess######, however in the example it requires the cpsess######## so that doesnt work for me.
my goal is to be able to access the WHM API using the static API Token that i can put in the app.
any assistance will be greatly appreciated.