Jump to content
  • 0

Client API Question


battisti

Question

Im using the whmcs API to insert a client.

 

The sample in the documentation is:

 

$postfields["action"] = "addclient";

$postfields["firstname"] = "Cliente da Alkantara";

$postfields["lastname"] = "User";

$postfields["companyname"] = "WHMCS";

$postfields["email"] = "alkata@whmcs.cons";

$postfields["address1"] = "123 Demo Street";

$postfields["city"] = "Demo";

$postfields["state"] = "Florida";

$postfields["postcode"] = "AB123";

$postfields["country"] = "US";

$postfields["phonenumber"] = "123456789";

$postfields["password2"] = "demo";

$postfields["currency"] = "1";

 

BUT i need to insert to a client and put then in a group! ithe na of the fild in the database is groupid.

 

i try put it in the vector but no work.

 

$postfields["groupid"] = "2";

 

The groupid 2 existis in database but the API didn't insert this value on the field.

 

Some idea?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Im using the whmcs API to insert a client.

 

The sample in the documentation is:

 

$postfields["action"] = "addclient";

$postfields["firstname"] = "Cliente da Alkantara";

$postfields["lastname"] = "User";

$postfields["companyname"] = "WHMCS";

$postfields["email"] = "alkata@whmcs.cons";

$postfields["address1"] = "123 Demo Street";

$postfields["city"] = "Demo";

$postfields["state"] = "Florida";

$postfields["postcode"] = "AB123";

$postfields["country"] = "US";

$postfields["phonenumber"] = "123456789";

$postfields["password2"] = "demo";

$postfields["currency"] = "1";

 

BUT i need to insert to a client and put then in a group! ithe na of the fild in the database is groupid.

 

i try put it in the vector but no work.

 

$postfields["groupid"] = "2";

 

The groupid 2 existis in database but the API didn't insert this value on the field.

 

Some idea?

 

i see in the source of the api and its not possible to insert others sources of client, a pity!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated