Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kendaop

Pages: [1]
1
Installation / How to Create API key?
« on: April 27, 2018, 08:24:04 PM »
Hello, is there any way to create an API key without going through the UI? Is there some way I can input values into a config file or something? I have some scripts to automate some user management tasks through the API, but I can't find any way to automate the API key generation itself.

Any tips?

2
CentOS 7 Problems / Re: CWP 7 WHMCS API error
« on: April 26, 2018, 05:21:36 PM »
I figured out why I was receiving this error. I was sending "default" as the value for the package key. When I changed it to "1", the request worked. I believe the correct value for this field should correspond to HTML value of the Option element in the drop-down, not the text of the element.

Hopefully this helps someone else.

3
CentOS 7 Problems / Re: CWP 7 WHMCS API error
« on: April 26, 2018, 04:20:40 PM »
The action to add a new user account partially completes, because if you run a second identical request, you receive this the second time:
Code: [Select]
{"status":"Error","msj":"already exists in \/etc\/passwd!"}

4
CentOS 7 Problems / Re: CWP 7 WHMCS API error
« on: April 26, 2018, 04:16:27 PM »
and what happens if you use any other option (Change password, Suspend, etc)

When I execute an API call to change a password, it works just fine:
Code: [Select]
{"status":"OK"}I tested it, and the new password must be used, in order to log in with the user.
It looks like there's an issue with the Add Account web service.

5
CentOS 7 Problems / Re: CWP 7 WHMCS API error
« on: April 25, 2018, 06:25:03 PM »
I'm having my CWP (brand new instance) server call a PHP script, which hits the API, and I have the exact same issue as the OP when trying to create a new account. If I change the action to 'list', instead of 'add', I get
Code: [Select]
{"status":"OK","msj":"no records exist"}, which is correct.

Pages: [1]