Control Web Panel

Developers => CWP API => Topic started by: tiagocaus on July 30, 2019, 02:09:32 AM

Title: Folder V1
Post by: tiagocaus on July 30, 2019, 02:09:32 AM
Where is this path located on the server?

> http://my-ip:2304/v1/

Which way to locate this folder V1?
Title: Re: Folder V1
Post by: studio4host on July 31, 2019, 11:45:41 AM
/usr/local/cwpsrv/var/services/api
Title: Re: Folder V1
Post by: tiagocaus on August 31, 2019, 09:26:38 PM
I couldn't find the folder "/account" in V1 folder.

I am trying to get to this file, just to see how it is created, edited .... among other cwp7.php file commands.

I am trying to create a module for my car rental system.

I noticed that the function "cwp7_CreateAccount($params)" creates a URL with all the variables.

Code: [Select]
https://painel.xxxx.com.br/whmcs/criar.php?
action=add
&usuario=conta6351
&senha=MI5jO%40ymF88y2%23
&chave=7FFD85D93A3E4DE5C490D304CCD9F864

Until then I could do

Now I'm trying to figure out how to return curl_exec SUCCESS or ERROR



Can you help me with this?

Title: Re: Folder V1
Post by: studio4host on September 01, 2019, 02:41:27 PM
these folders are managed by rewrite rules so they don't exist for real.