From 5662101c88bc06860cab5ec5a858fd9c2f852afc Mon Sep 17 00:00:00 2001 From: Matt Pugh Date: Wed, 21 Feb 2018 19:27:59 +0000 Subject: [PATCH] API Doc updates for WHMCS 7.5 + sample code fix --- api-reference/acceptorder.md | 1 + api-reference/acceptquote.md | 1 + api-reference/activatemodule.md | 1 + api-reference/addannouncement.md | 1 + api-reference/addbannedip.md | 1 + api-reference/addbillableitem.md | 1 + api-reference/addcancelrequest.md | 1 + api-reference/addclient.md | 2 ++ api-reference/addclientnote.md | 1 + api-reference/addcontact.md | 1 + api-reference/addcredit.md | 1 + api-reference/addinvoicepayment.md | 1 + api-reference/addorder.md | 1 + api-reference/addproduct.md | 1 + api-reference/addprojectmessage.md | 1 + api-reference/addprojecttask.md | 1 + api-reference/addticketnote.md | 6 ++++++ api-reference/addticketreply.md | 5 +++++ api-reference/addtransaction.md | 1 + api-reference/affiliateactivate.md | 1 + api-reference/applycredit.md | 1 + api-reference/cancelorder.md | 1 + api-reference/capturepayment.md | 1 + api-reference/closeclient.md | 1 + api-reference/createinvoice.md | 1 + api-reference/createoauthcredential.md | 1 + api-reference/createproject.md | 1 + api-reference/createquote.md | 1 + api-reference/deactivatemodule.md | 1 + api-reference/decryptpassword.md | 1 + api-reference/deleteannouncement.md | 1 + api-reference/deleteclient.md | 1 + api-reference/deletecontact.md | 1 + api-reference/deleteoauthcredential.md | 1 + api-reference/deleteorder.md | 1 + api-reference/deleteprojecttask.md | 1 + api-reference/deletequote.md | 1 + api-reference/deleteticket.md | 1 + api-reference/deleteticketnote.md | 1 + api-reference/domaingetlockingstatus.md | 1 + api-reference/domaingetnameservers.md | 1 + api-reference/domaingetwhoisinfo.md | 1 + api-reference/domainregister.md | 1 + api-reference/domainrelease.md | 1 + api-reference/domainrenew.md | 1 + api-reference/domainrequestepp.md | 1 + api-reference/domaintoggleidprotect.md | 1 + api-reference/domaintransfer.md | 1 + api-reference/domainupdatelockingstatus.md | 1 + api-reference/domainupdatenameservers.md | 1 + api-reference/domainupdatewhoisinfo.md | 1 + api-reference/domainwhois.md | 1 + api-reference/encryptpassword.md | 1 + api-reference/endtasktimer.md | 1 + api-reference/fraudorder.md | 1 + api-reference/geninvoices.md | 1 + api-reference/getactivitylog.md | 1 + api-reference/getadmindetails.md | 1 + api-reference/getaffiliates.md | 1 + api-reference/getannouncements.md | 1 + api-reference/getautomationlog.md | 1 + api-reference/getcancelledpackages.md | 1 + api-reference/getclientgroups.md | 1 + api-reference/getclientpassword.md | 1 + api-reference/getclients.md | 1 + api-reference/getclientsaddons.md | 1 + api-reference/getclientsdetails.md | 1 + api-reference/getclientsdomains.md | 1 + api-reference/getclientsproducts.md | 1 + api-reference/getconfigurationvalue.md | 1 + api-reference/getcontacts.md | 1 + api-reference/getcredits.md | 1 + api-reference/getcurrencies.md | 1 + api-reference/getemails.md | 1 + api-reference/getemailtemplates.md | 3 ++- api-reference/gethealthstatus.md | 1 + api-reference/getinvoice.md | 1 + api-reference/getinvoices.md | 1 + api-reference/getmoduleconfigurationparameters.md | 1 + api-reference/getmodulequeue.md | 1 + api-reference/getorders.md | 1 + api-reference/getorderstatuses.md | 1 + api-reference/getpaymentmethods.md | 1 + api-reference/getproducts.md | 1 + api-reference/getproject.md | 1 + api-reference/getprojects.md | 1 + api-reference/getpromotions.md | 1 + api-reference/getquotes.md | 1 + api-reference/getservers.md | 1 + api-reference/getstaffonline.md | 1 + api-reference/getstats.md | 1 + api-reference/getsupportdepartments.md | 1 + api-reference/getsupportstatuses.md | 1 + api-reference/getticket.md | 1 + api-reference/getticketcounts.md | 1 + api-reference/getticketnotes.md | 1 + api-reference/getticketpredefinedcats.md | 1 + api-reference/getticketpredefinedreplies.md | 1 + api-reference/gettickets.md | 1 + api-reference/gettldpricing.md | 1 + api-reference/gettodoitems.md | 1 + api-reference/gettodoitemstatuses.md | 1 + api-reference/gettransactions.md | 1 + api-reference/listoauthcredentials.md | 1 + api-reference/logactivity.md | 1 + api-reference/modulechangepackage.md | 1 + api-reference/modulechangepw.md | 1 + api-reference/modulecreate.md | 1 + api-reference/modulecustom.md | 1 + api-reference/modulesuspend.md | 1 + api-reference/moduleterminate.md | 1 + api-reference/moduleunsuspend.md | 1 + api-reference/openticket.md | 5 +++++ api-reference/orderfraudcheck.md | 1 + api-reference/pendingorder.md | 1 + api-reference/sendadminemail.md | 1 + api-reference/sendemail.md | 1 + api-reference/sendquote.md | 1 + api-reference/setconfigurationvalue.md | 1 + api-reference/starttasktimer.md | 1 + api-reference/triggernotificationevent.md | 1 + api-reference/updateadminnotes.md | 1 + api-reference/updateannouncement.md | 1 + api-reference/updateclient.md | 3 ++- api-reference/updateclientaddon.md | 1 + api-reference/updateclientdomain.md | 1 + api-reference/updateclientproduct.md | 1 + api-reference/updatecontact.md | 1 + api-reference/updateinvoice.md | 1 + api-reference/updatemoduleconfiguration.md | 1 + api-reference/updateoauthcredential.md | 1 + api-reference/updateproject.md | 1 + api-reference/updateprojecttask.md | 1 + api-reference/updatequote.md | 1 + api-reference/updateticket.md | 1 + api-reference/updatetodoitem.md | 1 + api-reference/updatetransaction.md | 1 + api-reference/upgradeproduct.md | 1 + api-reference/validatelogin.md | 6 +++++- api/api-index.md | 2 +- modules/index.md | 13 ++++++++++--- 141 files changed, 170 insertions(+), 7 deletions(-) diff --git a/api-reference/acceptorder.md b/api-reference/acceptorder.md index f892e38..b5d61d7 100644 --- a/api-reference/acceptorder.md +++ b/api-reference/acceptorder.md @@ -47,6 +47,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/acceptquote.md b/api-reference/acceptquote.md index 3c27a48..8777b92 100644 --- a/api-reference/acceptquote.md +++ b/api-reference/acceptquote.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/activatemodule.md b/api-reference/activatemodule.md index 58532d1..edf73a8 100644 --- a/api-reference/activatemodule.md +++ b/api-reference/activatemodule.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addannouncement.md b/api-reference/addannouncement.md index 39fa6f6..6474403 100644 --- a/api-reference/addannouncement.md +++ b/api-reference/addannouncement.md @@ -44,6 +44,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addbannedip.md b/api-reference/addbannedip.md index bf8c9c1..ce29e75 100644 --- a/api-reference/addbannedip.md +++ b/api-reference/addbannedip.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addbillableitem.md b/api-reference/addbillableitem.md index 5484c42..ed5c828 100644 --- a/api-reference/addbillableitem.md +++ b/api-reference/addbillableitem.md @@ -53,6 +53,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addcancelrequest.md b/api-reference/addcancelrequest.md index 736915d..fec0d08 100644 --- a/api-reference/addcancelrequest.md +++ b/api-reference/addcancelrequest.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addclient.md b/api-reference/addclient.md index 9a51e2a..e53fbed 100644 --- a/api-reference/addclient.md +++ b/api-reference/addclient.md @@ -36,6 +36,7 @@ Adds a client. | language | string | Default language setting. Provide full name: 'english', 'french', etc... | Optional | | clientip | string | IP address of the user | Optional | | notes | string | Admin only notes | Optional | +| marketingoptin | bool | Set true to opt client in to marketing emails | Optional | | noemail | bool | Pass as true to skip sending welcome email | Optional | | skipvalidation | bool | Pass as true to ignore required fields validation | Optional | @@ -77,6 +78,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addclientnote.md b/api-reference/addclientnote.md index 2fa79a8..3649448 100644 --- a/api-reference/addclientnote.md +++ b/api-reference/addclientnote.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addcontact.md b/api-reference/addcontact.md index 34d1665..df384b5 100644 --- a/api-reference/addcontact.md +++ b/api-reference/addcontact.md @@ -59,6 +59,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addcredit.md b/api-reference/addcredit.md index 4b31963..83c8d18 100644 --- a/api-reference/addcredit.md +++ b/api-reference/addcredit.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addinvoicepayment.md b/api-reference/addinvoicepayment.md index 43d1a61..ebf7ab7 100644 --- a/api-reference/addinvoicepayment.md +++ b/api-reference/addinvoicepayment.md @@ -46,6 +46,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addorder.md b/api-reference/addorder.md index ecf3de7..bd74681 100644 --- a/api-reference/addorder.md +++ b/api-reference/addorder.md @@ -93,6 +93,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addproduct.md b/api-reference/addproduct.md index 3cb4d3f..45ed620 100644 --- a/api-reference/addproduct.md +++ b/api-reference/addproduct.md @@ -69,6 +69,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addprojectmessage.md b/api-reference/addprojectmessage.md index 2eeb4c3..216f4fc 100644 --- a/api-reference/addprojectmessage.md +++ b/api-reference/addprojectmessage.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addprojecttask.md b/api-reference/addprojecttask.md index 94a1a5a..fd51bbf 100644 --- a/api-reference/addprojecttask.md +++ b/api-reference/addprojecttask.md @@ -47,6 +47,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/addticketnote.md b/api-reference/addticketnote.md index a708a1f..13fb82d 100644 --- a/api-reference/addticketnote.md +++ b/api-reference/addticketnote.md @@ -14,6 +14,7 @@ Add a note to a ticket by Ticket ID or Ticket Number. | ticketnum | string | The Client Ticket Number ID to apply the note to | Optional | | ticketid | int | The id of the ticket in the database. Either $ticketnum or $ticketid is required | Optional | | markdown | bool | Should markdown be used on the ticket note output | Optional | +| attachments | array | Optional base64 json encoded array of file attachments. Can be the direct output of a multipart-form-data form submission ($_FILES superglobal in PHP) or an array of arrays consisting of both a filename and data keys (see example below). | Optional | ### Response Parameters @@ -38,10 +39,12 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, 'ticketid' => '1', 'message' => 'This is a sample ticket note', 'markdown' => true, + 'attachments' => base64_encode(json_encode([['name' => 'sample_text_file.txt', 'data' => base64_encode('This is a sample text file contents')]])), 'responsetype' => 'json', ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` @@ -55,6 +58,7 @@ $postData = array( 'ticketid' => '1', 'message' => 'This is a sample ticket note', 'markdown' => true, + 'attachments' => base64_encode(json_encode([['name' => 'sample_text_file.txt', 'data' => base64_encode('This is a sample text file contents')]])), ); $adminUsername = 'ADMIN_USERNAME'; // Optional for WHMCS 7.2 and later @@ -77,6 +81,7 @@ print_r($results); Possible error condition responses include: * Ticket ID not found +* Message is required ### Version History @@ -84,3 +89,4 @@ Possible error condition responses include: | Version | Changelog | | ------- | --------- | | 1.0 | Initial Version | +| 7.5 | Added support for attachments | diff --git a/api-reference/addticketreply.md b/api-reference/addticketreply.md index e97ade5..d1f57fa 100644 --- a/api-reference/addticketreply.md +++ b/api-reference/addticketreply.md @@ -21,6 +21,7 @@ Add a reply to a ticket by Ticket ID. | status | string | The status to set on the ticket after the reply is made if the default status on admin/client response is not required. See GetSupportStatuses API command | Optional | | noemail | bool | Set to true to stop the ticket reply email being sent | Optional | | customfields | string | A base64 encoded array of the custom fields to update | Optional | +| attachments | array | Optional base64 json encoded array of file attachments. Can be the direct output of a multipart-form-data form submission ($_FILES superglobal in PHP) or an array of arrays consisting of both a filename and data keys (see example below). | Optional | ### Response Parameters @@ -47,10 +48,12 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, 'clientid' => '1', 'customfields' => base64_encode(serialize(array("1"=>"Google"))), 'useMarkdown' => true, + 'attachments' => base64_encode(json_encode([['name' => 'sample_text_file.txt', 'data' => base64_encode('This is a sample text file contents')]])), 'responsetype' => 'json', ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` @@ -66,6 +69,7 @@ $postData = array( 'clientid' => '1', 'customfields' => base64_encode(serialize(array("1"=>"Google"))), 'useMarkdown' => true, + 'attachments' => base64_encode(json_encode([['name' => 'sample_text_file.txt', 'data' => base64_encode('This is a sample text file contents')]])), ); $adminUsername = 'ADMIN_USERNAME'; // Optional for WHMCS 7.2 and later @@ -99,3 +103,4 @@ Possible error condition responses include: | Version | Changelog | | ------- | --------- | | 1.0 | Initial Version | +| 7.5 | Added support for attachments | diff --git a/api-reference/addtransaction.md b/api-reference/addtransaction.md index 96f65e9..36cf879 100644 --- a/api-reference/addtransaction.md +++ b/api-reference/addtransaction.md @@ -55,6 +55,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/affiliateactivate.md b/api-reference/affiliateactivate.md index 4848f72..95795aa 100644 --- a/api-reference/affiliateactivate.md +++ b/api-reference/affiliateactivate.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/applycredit.md b/api-reference/applycredit.md index 1c397f7..73d05b0 100644 --- a/api-reference/applycredit.md +++ b/api-reference/applycredit.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/cancelorder.md b/api-reference/cancelorder.md index 0160b8a..9f25eb8 100644 --- a/api-reference/cancelorder.md +++ b/api-reference/cancelorder.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/capturepayment.md b/api-reference/capturepayment.md index aeb001b..4835858 100644 --- a/api-reference/capturepayment.md +++ b/api-reference/capturepayment.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/closeclient.md b/api-reference/closeclient.md index 0b66098..3db26cd 100644 --- a/api-reference/closeclient.md +++ b/api-reference/closeclient.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/createinvoice.md b/api-reference/createinvoice.md index 75734df..a46a989 100644 --- a/api-reference/createinvoice.md +++ b/api-reference/createinvoice.md @@ -65,6 +65,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/createoauthcredential.md b/api-reference/createoauthcredential.md index 4661f2b..9446191 100644 --- a/api-reference/createoauthcredential.md +++ b/api-reference/createoauthcredential.md @@ -49,6 +49,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/createproject.md b/api-reference/createproject.md index 159373a..9cc3a58 100644 --- a/api-reference/createproject.md +++ b/api-reference/createproject.md @@ -47,6 +47,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/createquote.md b/api-reference/createquote.md index a6acba9..ee0915f 100644 --- a/api-reference/createquote.md +++ b/api-reference/createquote.md @@ -68,6 +68,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deactivatemodule.md b/api-reference/deactivatemodule.md index d93bc9d..f745f2a 100644 --- a/api-reference/deactivatemodule.md +++ b/api-reference/deactivatemodule.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/decryptpassword.md b/api-reference/decryptpassword.md index 6637fee..56b214d 100644 --- a/api-reference/decryptpassword.md +++ b/api-reference/decryptpassword.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deleteannouncement.md b/api-reference/deleteannouncement.md index 305635c..6fedf2a 100644 --- a/api-reference/deleteannouncement.md +++ b/api-reference/deleteannouncement.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deleteclient.md b/api-reference/deleteclient.md index 6d0a01c..061b65a 100644 --- a/api-reference/deleteclient.md +++ b/api-reference/deleteclient.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deletecontact.md b/api-reference/deletecontact.md index 9072093..7e59d1a 100644 --- a/api-reference/deletecontact.md +++ b/api-reference/deletecontact.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deleteoauthcredential.md b/api-reference/deleteoauthcredential.md index 5261c96..899ff1f 100644 --- a/api-reference/deleteoauthcredential.md +++ b/api-reference/deleteoauthcredential.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deleteorder.md b/api-reference/deleteorder.md index 6668d05..03d27f7 100644 --- a/api-reference/deleteorder.md +++ b/api-reference/deleteorder.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deleteprojecttask.md b/api-reference/deleteprojecttask.md index 98256af..d165b7d 100644 --- a/api-reference/deleteprojecttask.md +++ b/api-reference/deleteprojecttask.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deletequote.md b/api-reference/deletequote.md index 9710404..21d1aec 100644 --- a/api-reference/deletequote.md +++ b/api-reference/deletequote.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deleteticket.md b/api-reference/deleteticket.md index 0610684..76f1f38 100644 --- a/api-reference/deleteticket.md +++ b/api-reference/deleteticket.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/deleteticketnote.md b/api-reference/deleteticketnote.md index 5f575ec..42aeed9 100644 --- a/api-reference/deleteticketnote.md +++ b/api-reference/deleteticketnote.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domaingetlockingstatus.md b/api-reference/domaingetlockingstatus.md index 98fa711..901a77e 100644 --- a/api-reference/domaingetlockingstatus.md +++ b/api-reference/domaingetlockingstatus.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domaingetnameservers.md b/api-reference/domaingetnameservers.md index a1bfad0..906c646 100644 --- a/api-reference/domaingetnameservers.md +++ b/api-reference/domaingetnameservers.md @@ -44,6 +44,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domaingetwhoisinfo.md b/api-reference/domaingetwhoisinfo.md index ecb9389..f4c3eed 100644 --- a/api-reference/domaingetwhoisinfo.md +++ b/api-reference/domaingetwhoisinfo.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainregister.md b/api-reference/domainregister.md index 699ef19..029236b 100644 --- a/api-reference/domainregister.md +++ b/api-reference/domainregister.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainrelease.md b/api-reference/domainrelease.md index 0af6e10..8bf76be 100644 --- a/api-reference/domainrelease.md +++ b/api-reference/domainrelease.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainrenew.md b/api-reference/domainrenew.md index d185d7d..2883d28 100644 --- a/api-reference/domainrenew.md +++ b/api-reference/domainrenew.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainrequestepp.md b/api-reference/domainrequestepp.md index 9042b40..7f1d6c2 100644 --- a/api-reference/domainrequestepp.md +++ b/api-reference/domainrequestepp.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domaintoggleidprotect.md b/api-reference/domaintoggleidprotect.md index 5c242d5..802b3f7 100644 --- a/api-reference/domaintoggleidprotect.md +++ b/api-reference/domaintoggleidprotect.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domaintransfer.md b/api-reference/domaintransfer.md index 2c6d0a6..0d351ec 100644 --- a/api-reference/domaintransfer.md +++ b/api-reference/domaintransfer.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainupdatelockingstatus.md b/api-reference/domainupdatelockingstatus.md index ee658de..0c240cf 100644 --- a/api-reference/domainupdatelockingstatus.md +++ b/api-reference/domainupdatelockingstatus.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainupdatenameservers.md b/api-reference/domainupdatenameservers.md index a6cc6b1..81baf41 100644 --- a/api-reference/domainupdatenameservers.md +++ b/api-reference/domainupdatenameservers.md @@ -45,6 +45,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainupdatewhoisinfo.md b/api-reference/domainupdatewhoisinfo.md index 302177d..990c6c9 100644 --- a/api-reference/domainupdatewhoisinfo.md +++ b/api-reference/domainupdatewhoisinfo.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/domainwhois.md b/api-reference/domainwhois.md index 315baf1..492d9d4 100644 --- a/api-reference/domainwhois.md +++ b/api-reference/domainwhois.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/encryptpassword.md b/api-reference/encryptpassword.md index 7065865..919faf6 100644 --- a/api-reference/encryptpassword.md +++ b/api-reference/encryptpassword.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/endtasktimer.md b/api-reference/endtasktimer.md index ae32e38..fde1e98 100644 --- a/api-reference/endtasktimer.md +++ b/api-reference/endtasktimer.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/fraudorder.md b/api-reference/fraudorder.md index 91c875b..d5c41b7 100644 --- a/api-reference/fraudorder.md +++ b/api-reference/fraudorder.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/geninvoices.md b/api-reference/geninvoices.md index 2c1d31f..de250ed 100644 --- a/api-reference/geninvoices.md +++ b/api-reference/geninvoices.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getactivitylog.md b/api-reference/getactivitylog.md index 605ec72..e61c073 100644 --- a/api-reference/getactivitylog.md +++ b/api-reference/getactivitylog.md @@ -46,6 +46,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getadmindetails.md b/api-reference/getadmindetails.md index 7ee60a9..6a17f39 100644 --- a/api-reference/getadmindetails.md +++ b/api-reference/getadmindetails.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getaffiliates.md b/api-reference/getaffiliates.md index e39e70e..bc45d53 100644 --- a/api-reference/getaffiliates.md +++ b/api-reference/getaffiliates.md @@ -48,6 +48,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getannouncements.md b/api-reference/getannouncements.md index 86938d3..0109681 100644 --- a/api-reference/getannouncements.md +++ b/api-reference/getannouncements.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getautomationlog.md b/api-reference/getautomationlog.md index f8350b8..3af9e35 100644 --- a/api-reference/getautomationlog.md +++ b/api-reference/getautomationlog.md @@ -46,6 +46,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getcancelledpackages.md b/api-reference/getcancelledpackages.md index 78bf291..b4dc8dd 100644 --- a/api-reference/getcancelledpackages.md +++ b/api-reference/getcancelledpackages.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getclientgroups.md b/api-reference/getclientgroups.md index 058e714..e9b4550 100644 --- a/api-reference/getclientgroups.md +++ b/api-reference/getclientgroups.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getclientpassword.md b/api-reference/getclientpassword.md index 89a0597..ed72a75 100644 --- a/api-reference/getclientpassword.md +++ b/api-reference/getclientpassword.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getclients.md b/api-reference/getclients.md index c0604c6..0ed205b 100644 --- a/api-reference/getclients.md +++ b/api-reference/getclients.md @@ -44,6 +44,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getclientsaddons.md b/api-reference/getclientsaddons.md index 9558267..a681398 100644 --- a/api-reference/getclientsaddons.md +++ b/api-reference/getclientsaddons.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getclientsdetails.md b/api-reference/getclientsdetails.md index e9cffd9..2d1a489 100644 --- a/api-reference/getclientsdetails.md +++ b/api-reference/getclientsdetails.md @@ -45,6 +45,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getclientsdomains.md b/api-reference/getclientsdomains.md index d96c6a7..de0db15 100644 --- a/api-reference/getclientsdomains.md +++ b/api-reference/getclientsdomains.md @@ -48,6 +48,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getclientsproducts.md b/api-reference/getclientsproducts.md index f29395b..0419b64 100644 --- a/api-reference/getclientsproducts.md +++ b/api-reference/getclientsproducts.md @@ -52,6 +52,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getconfigurationvalue.md b/api-reference/getconfigurationvalue.md index dfa4828..3dea4f3 100644 --- a/api-reference/getconfigurationvalue.md +++ b/api-reference/getconfigurationvalue.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getcontacts.md b/api-reference/getcontacts.md index dcf5e59..1beaadd 100644 --- a/api-reference/getcontacts.md +++ b/api-reference/getcontacts.md @@ -55,6 +55,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getcredits.md b/api-reference/getcredits.md index 5f32c57..f8f9b10 100644 --- a/api-reference/getcredits.md +++ b/api-reference/getcredits.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getcurrencies.md b/api-reference/getcurrencies.md index a13e9a9..f0932bb 100644 --- a/api-reference/getcurrencies.md +++ b/api-reference/getcurrencies.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getemails.md b/api-reference/getemails.md index 15999bc..037756f 100644 --- a/api-reference/getemails.md +++ b/api-reference/getemails.md @@ -46,6 +46,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getemailtemplates.md b/api-reference/getemailtemplates.md index d097e38..08835f2 100644 --- a/api-reference/getemailtemplates.md +++ b/api-reference/getemailtemplates.md @@ -11,7 +11,7 @@ Obtain a list of email templates from the system | --------- | ---- | ----------- | -------- | | action | string | "GetEmailTemplates" | Required | | type | string | The type of email template to retrieve | Optional | -| language | string | The language of the email template to retrieve | Optional | +| language | string | The language of the email template to retrieve, if none provided will return default language templates. | Optional | ### Response Parameters @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/gethealthstatus.md b/api-reference/gethealthstatus.md index 310a6be..d25588a 100644 --- a/api-reference/gethealthstatus.md +++ b/api-reference/gethealthstatus.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getinvoice.md b/api-reference/getinvoice.md index 9d073fc..8e3f71d 100644 --- a/api-reference/getinvoice.md +++ b/api-reference/getinvoice.md @@ -57,6 +57,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getinvoices.md b/api-reference/getinvoices.md index 0f9236c..7e97bc4 100644 --- a/api-reference/getinvoices.md +++ b/api-reference/getinvoices.md @@ -44,6 +44,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getmoduleconfigurationparameters.md b/api-reference/getmoduleconfigurationparameters.md index 7e9e339..49e4a70 100644 --- a/api-reference/getmoduleconfigurationparameters.md +++ b/api-reference/getmoduleconfigurationparameters.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getmodulequeue.md b/api-reference/getmodulequeue.md index fd2b895..41b6e59 100644 --- a/api-reference/getmodulequeue.md +++ b/api-reference/getmodulequeue.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getorders.md b/api-reference/getorders.md index 2be2cee..fab9328 100644 --- a/api-reference/getorders.md +++ b/api-reference/getorders.md @@ -45,6 +45,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getorderstatuses.md b/api-reference/getorderstatuses.md index 5291b6f..9f5aaf8 100644 --- a/api-reference/getorderstatuses.md +++ b/api-reference/getorderstatuses.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getpaymentmethods.md b/api-reference/getpaymentmethods.md index 74f4661..10b83fc 100644 --- a/api-reference/getpaymentmethods.md +++ b/api-reference/getpaymentmethods.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getproducts.md b/api-reference/getproducts.md index a6b3508..fea4e13 100644 --- a/api-reference/getproducts.md +++ b/api-reference/getproducts.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getproject.md b/api-reference/getproject.md index bbb6449..6c5bd0b 100644 --- a/api-reference/getproject.md +++ b/api-reference/getproject.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getprojects.md b/api-reference/getprojects.md index 2154604..7dbc4f5 100644 --- a/api-reference/getprojects.md +++ b/api-reference/getprojects.md @@ -52,6 +52,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getpromotions.md b/api-reference/getpromotions.md index 4ed1830..be4d029 100644 --- a/api-reference/getpromotions.md +++ b/api-reference/getpromotions.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getquotes.md b/api-reference/getquotes.md index 05bcb75..ce10736 100644 --- a/api-reference/getquotes.md +++ b/api-reference/getquotes.md @@ -49,6 +49,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getservers.md b/api-reference/getservers.md index 642fd6a..6ea5d85 100644 --- a/api-reference/getservers.md +++ b/api-reference/getservers.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getstaffonline.md b/api-reference/getstaffonline.md index 88e66f8..8000f83 100644 --- a/api-reference/getstaffonline.md +++ b/api-reference/getstaffonline.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getstats.md b/api-reference/getstats.md index 928bdea..fbf7f1f 100644 --- a/api-reference/getstats.md +++ b/api-reference/getstats.md @@ -66,6 +66,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getsupportdepartments.md b/api-reference/getsupportdepartments.md index 26c6e11..c265071 100644 --- a/api-reference/getsupportdepartments.md +++ b/api-reference/getsupportdepartments.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getsupportstatuses.md b/api-reference/getsupportstatuses.md index 9b85056..7bc9f38 100644 --- a/api-reference/getsupportstatuses.md +++ b/api-reference/getsupportstatuses.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getticket.md b/api-reference/getticket.md index 27d6324..f7d9d60 100644 --- a/api-reference/getticket.md +++ b/api-reference/getticket.md @@ -60,6 +60,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getticketcounts.md b/api-reference/getticketcounts.md index 5e153d7..79b0dee 100644 --- a/api-reference/getticketcounts.md +++ b/api-reference/getticketcounts.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getticketnotes.md b/api-reference/getticketnotes.md index bbb2062..d70a8cb 100644 --- a/api-reference/getticketnotes.md +++ b/api-reference/getticketnotes.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getticketpredefinedcats.md b/api-reference/getticketpredefinedcats.md index 79baed7..e3c4de5 100644 --- a/api-reference/getticketpredefinedcats.md +++ b/api-reference/getticketpredefinedcats.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/getticketpredefinedreplies.md b/api-reference/getticketpredefinedreplies.md index 9b26874..f19870a 100644 --- a/api-reference/getticketpredefinedreplies.md +++ b/api-reference/getticketpredefinedreplies.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/gettickets.md b/api-reference/gettickets.md index 32e848a..f449923 100644 --- a/api-reference/gettickets.md +++ b/api-reference/gettickets.md @@ -47,6 +47,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/gettldpricing.md b/api-reference/gettldpricing.md index abcd077..8201e01 100644 --- a/api-reference/gettldpricing.md +++ b/api-reference/gettldpricing.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/gettodoitems.md b/api-reference/gettodoitems.md index eb662d8..5d19e7a 100644 --- a/api-reference/gettodoitems.md +++ b/api-reference/gettodoitems.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/gettodoitemstatuses.md b/api-reference/gettodoitemstatuses.md index bdb96db..93d54ba 100644 --- a/api-reference/gettodoitemstatuses.md +++ b/api-reference/gettodoitemstatuses.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/gettransactions.md b/api-reference/gettransactions.md index 70e46e0..537dbef 100644 --- a/api-reference/gettransactions.md +++ b/api-reference/gettransactions.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/listoauthcredentials.md b/api-reference/listoauthcredentials.md index 068381e..b71feb3 100644 --- a/api-reference/listoauthcredentials.md +++ b/api-reference/listoauthcredentials.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/logactivity.md b/api-reference/logactivity.md index cd7bc91..bc1ac30 100644 --- a/api-reference/logactivity.md +++ b/api-reference/logactivity.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/modulechangepackage.md b/api-reference/modulechangepackage.md index d834a1a..9581655 100644 --- a/api-reference/modulechangepackage.md +++ b/api-reference/modulechangepackage.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/modulechangepw.md b/api-reference/modulechangepw.md index c014f27..877141d 100644 --- a/api-reference/modulechangepw.md +++ b/api-reference/modulechangepw.md @@ -38,6 +38,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/modulecreate.md b/api-reference/modulecreate.md index b7b54da..7f36ca6 100644 --- a/api-reference/modulecreate.md +++ b/api-reference/modulecreate.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/modulecustom.md b/api-reference/modulecustom.md index 9e8958b..7be0500 100644 --- a/api-reference/modulecustom.md +++ b/api-reference/modulecustom.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/modulesuspend.md b/api-reference/modulesuspend.md index ed054fe..b6912a0 100644 --- a/api-reference/modulesuspend.md +++ b/api-reference/modulesuspend.md @@ -39,6 +39,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/moduleterminate.md b/api-reference/moduleterminate.md index 0e8a34c..468b030 100644 --- a/api-reference/moduleterminate.md +++ b/api-reference/moduleterminate.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/moduleunsuspend.md b/api-reference/moduleunsuspend.md index 4f0a6d1..35629f0 100644 --- a/api-reference/moduleunsuspend.md +++ b/api-reference/moduleunsuspend.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/openticket.md b/api-reference/openticket.md index 1f5122f..6f50e85 100644 --- a/api-reference/openticket.md +++ b/api-reference/openticket.md @@ -23,6 +23,7 @@ Open a new ticket | admin | bool | Is an Admin opening the ticket | Optional | | markdown | bool | Should markdown be used on the ticket output | Optional | | customfields | string | Base64 encoded serialized array of custom field values | Optional | +| attachments | array | Optional base64 json encoded array of file attachments. Can be the direct output of a multipart-form-data form submission ($_FILES superglobal in PHP) or an array of arrays consisting of both a filename and data keys (see example below). | Optional | ### Response Parameters @@ -50,10 +51,12 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, 'clientid' => '1', 'priority' => 'Medium', 'markdown' => true, + 'attachments' => base64_encode(json_encode([['name' => 'sample_text_file.txt', 'data' => base64_encode('This is a sample text file contents')]])), 'responsetype' => 'json', ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` @@ -70,6 +73,7 @@ $postData = array( 'clientid' => '1', 'priority' => 'Medium', 'markdown' => true, + 'attachments' => base64_encode(json_encode([['name' => 'sample_text_file.txt', 'data' => base64_encode('This is a sample text file contents')]])), ); $adminUsername = 'ADMIN_USERNAME'; // Optional for WHMCS 7.2 and later @@ -109,3 +113,4 @@ Possible error condition responses include: | Version | Changelog | | ------- | --------- | | 1.0 | Initial Version | +| 7.5 | Added support for attachments | diff --git a/api-reference/orderfraudcheck.md b/api-reference/orderfraudcheck.md index 8996cf8..56fea8e 100644 --- a/api-reference/orderfraudcheck.md +++ b/api-reference/orderfraudcheck.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/pendingorder.md b/api-reference/pendingorder.md index b9b675b..983b68e 100644 --- a/api-reference/pendingorder.md +++ b/api-reference/pendingorder.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/sendadminemail.md b/api-reference/sendadminemail.md index b682b2e..d641477 100644 --- a/api-reference/sendadminemail.md +++ b/api-reference/sendadminemail.md @@ -43,6 +43,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/sendemail.md b/api-reference/sendemail.md index 8b23da3..f142573 100644 --- a/api-reference/sendemail.md +++ b/api-reference/sendemail.md @@ -80,6 +80,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/sendquote.md b/api-reference/sendquote.md index d827ef8..78402a8 100644 --- a/api-reference/sendquote.md +++ b/api-reference/sendquote.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/setconfigurationvalue.md b/api-reference/setconfigurationvalue.md index d305bbc..5a74517 100644 --- a/api-reference/setconfigurationvalue.md +++ b/api-reference/setconfigurationvalue.md @@ -40,6 +40,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/starttasktimer.md b/api-reference/starttasktimer.md index b1e65b3..2a7619d 100644 --- a/api-reference/starttasktimer.md +++ b/api-reference/starttasktimer.md @@ -44,6 +44,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/triggernotificationevent.md b/api-reference/triggernotificationevent.md index d4576d2..3f81a53 100644 --- a/api-reference/triggernotificationevent.md +++ b/api-reference/triggernotificationevent.md @@ -53,6 +53,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateadminnotes.md b/api-reference/updateadminnotes.md index 43e75b1..63b364c 100644 --- a/api-reference/updateadminnotes.md +++ b/api-reference/updateadminnotes.md @@ -37,6 +37,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateannouncement.md b/api-reference/updateannouncement.md index dba20da..f6fbdb4 100644 --- a/api-reference/updateannouncement.md +++ b/api-reference/updateannouncement.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateclient.md b/api-reference/updateclient.md index f46181a..103043b 100644 --- a/api-reference/updateclient.md +++ b/api-reference/updateclient.md @@ -41,7 +41,7 @@ Updates a client with the passed parameters. | clientip | string | IP address of the user | Optional | | notes | string | Admin only notes | Optional | | paymentmethod | string | The default payment method | Optional | -| noemail | bool | Pass as true to skip sending welcome email | Optional | +| marketingoptin | bool | Set true to opt client in to marketing emails | Optional | | clearcreditcard | bool | Pass as true to clear the stored CC details | Optional | | skipvalidation | bool | Pass as true to ignore required fields validation | Optional | @@ -73,6 +73,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateclientaddon.md b/api-reference/updateclientaddon.md index a5c8e69..2e1ccb0 100644 --- a/api-reference/updateclientaddon.md +++ b/api-reference/updateclientaddon.md @@ -50,6 +50,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateclientdomain.md b/api-reference/updateclientdomain.md index 874ae56..132e6f0 100644 --- a/api-reference/updateclientdomain.md +++ b/api-reference/updateclientdomain.md @@ -64,6 +64,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateclientproduct.md b/api-reference/updateclientproduct.md index 95da4ff..1f80d99 100644 --- a/api-reference/updateclientproduct.md +++ b/api-reference/updateclientproduct.md @@ -72,6 +72,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updatecontact.md b/api-reference/updatecontact.md index 783e7dd..e43b68c 100644 --- a/api-reference/updatecontact.md +++ b/api-reference/updatecontact.md @@ -59,6 +59,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateinvoice.md b/api-reference/updateinvoice.md index 44c75c5..5e2bb8c 100644 --- a/api-reference/updateinvoice.md +++ b/api-reference/updateinvoice.md @@ -61,6 +61,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updatemoduleconfiguration.md b/api-reference/updatemoduleconfiguration.md index d5b6320..63ae130 100644 --- a/api-reference/updatemoduleconfiguration.md +++ b/api-reference/updatemoduleconfiguration.md @@ -41,6 +41,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateoauthcredential.md b/api-reference/updateoauthcredential.md index 43dfd76..3c2949a 100644 --- a/api-reference/updateoauthcredential.md +++ b/api-reference/updateoauthcredential.md @@ -50,6 +50,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateproject.md b/api-reference/updateproject.md index 844d227..fa87052 100644 --- a/api-reference/updateproject.md +++ b/api-reference/updateproject.md @@ -49,6 +49,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateprojecttask.md b/api-reference/updateprojecttask.md index ba2e04b..9e96027 100644 --- a/api-reference/updateprojecttask.md +++ b/api-reference/updateprojecttask.md @@ -47,6 +47,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updatequote.md b/api-reference/updatequote.md index 1eb6cf3..2830d67 100644 --- a/api-reference/updatequote.md +++ b/api-reference/updatequote.md @@ -67,6 +67,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updateticket.md b/api-reference/updateticket.md index 1d0239d..1f2fefd 100644 --- a/api-reference/updateticket.md +++ b/api-reference/updateticket.md @@ -52,6 +52,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updatetodoitem.md b/api-reference/updatetodoitem.md index 67ac1ea..4fbeb58 100644 --- a/api-reference/updatetodoitem.md +++ b/api-reference/updatetodoitem.md @@ -42,6 +42,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/updatetransaction.md b/api-reference/updatetransaction.md index dbe7f8b..58b861f 100644 --- a/api-reference/updatetransaction.md +++ b/api-reference/updatetransaction.md @@ -53,6 +53,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/upgradeproduct.md b/api-reference/upgradeproduct.md index 2a5fc7b..2b10551 100644 --- a/api-reference/upgradeproduct.md +++ b/api-reference/upgradeproduct.md @@ -53,6 +53,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api-reference/validatelogin.md b/api-reference/validatelogin.md index d4c931c..04ec7da 100644 --- a/api-reference/validatelogin.md +++ b/api-reference/validatelogin.md @@ -7,7 +7,10 @@ Validate client login credentials. This command can be used to validate an email address and password against a registered user in WHMCS. On success, the userid and password hash will -be returned which can be used to create an authenticated session. +be returned which can be used to create an authenticated session by setting +the session key 'uid' to the userid and the session key 'upw' to the +passwordhash. Note: if session IP validation is enabled, this API call +must be executed via the local API to receive a valid hash. ### Request Parameters @@ -47,6 +50,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, ) ) ); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); ``` diff --git a/api/api-index.md b/api/api-index.md index a072e48..0ee84c3 100644 --- a/api/api-index.md +++ b/api/api-index.md @@ -75,6 +75,7 @@ weight = 100
  • GetAutomationLog
  • GetConfigurationValue
  • GetCurrencies +
  • GetEmailTemplates
  • GetPaymentMethods
  • GetStaffOnline
  • GetStats @@ -106,7 +107,6 @@ weight = 100
  • GetClientsProducts
  • GetContacts
  • GetEmails -
  • GetEmailTemplates
  • UpdateClient
  • UpdateContact diff --git a/modules/index.md b/modules/index.md index 48dc14d..03a5e11 100644 --- a/modules/index.md +++ b/modules/index.md @@ -16,7 +16,7 @@ A module is a collection of functions that provide additional functionality to t