Jump to content

amirreza mousavi

Newbie
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About amirreza mousavi

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. amirreza mousavi

    API problem

    my account user id in the database is 18 but when I run this code that returns nothing. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://test.com/portal/includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( array( 'action' => 'GetContacts', // See https://developers.whmcs.com/api/authentication 'username' => 'apiusername', 'password' => 'apiPassword', 'userid' => '18', 'responsetype' => 'json', ) ) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); var_dump ($response); curl_close($ch); output: string(71) "{"result":"success","totalresults":"0","startnumber":0,"numreturned":0}"
  2. amirreza mousavi

    API problem

    Hi I try to get my client contacts from whmcs database by this API but that does not return any contacts. what can I do to resolve this problem?
  3. amirreza mousavi

    get ticket

    Hi I have a telegram bot which clients can sign in on that and send and receive ticket. I decide to get tickets with their attachments but whmcs API only give a file name to me. how can I get attachment download URL?
  4. Welcome to WHMCS.Community amirreza mousavi! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×

Important Information

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