Jump to content

Not Getting Proper Output when calling GetContact


3ses

Recommended Posts

Hello,

 

I am trying to retrieve contacts from GetContacts Method,

 

You can check attributes at this location

 

http://docs.whmcs.com/API:Get_Contacts

 

Now,

 

I have called a method from my api

 

GetContact("nprajapati@3ses.in")

and also like

 

GetContact("", "", "16", "Test", "", "", "nprajapati@3ses.in", "", "", "", "", "", "", "", "");

 

 

For First Function,

I have already added "nprajapati@3ses.in" using AddContact

 

 

And For the 2nd Function,

Which i called,

 

 

When calling this function i am getting success output xml as below.

 

<?xml version="1.0" encoding="utf-8"?>

<whmcsapi version="4.4.2">

<action>getcontacts</action>

<result>success</result>

<totalresults>0</totalresults>

<startnumber>0</startnumber>

<numreturned>0</numreturned>

</whmcsapi>

 

 

But, i did not find any contact list. The actual output should be shown in API Documentation.

http://docs.whmcs.com/API:Get_Contacts

 

No Doubt i am getting a success response, but i am not getting proper output.

 

 

In Second Function, Third Parameter is User ID. At Present i have passed clientid / contactid (i.e. 16 in my function). But i think contactid and userid are different.

I don't know, from which location i can find the user id. So can any body please suggest me for the same ASAP.

 

If you required any thing more from my end please let me know.

 

Thanks,

Nikunj

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
Reply to this topic...

×   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