Comments (1)
I am unable to reproduce this. Please ensure you are passing in the parameters correctly. Here is some example code that is confirmed to work:
<?php
$url = "https://demo.whmcs.com/includes/api.php";
$api_identifier = "xxxxxxxxxx";
$api_secret = "xxxxxxxxxx";
$postfields = array(
'identifier' => $api_identifier,
'secret' => $api_secret,
'action' => 'getclients',
'limitstart' => '0',
'limitnum' => '50',
'responsetype' => 'json',
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postfields));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response);
print_r($data);
from developer-docs.
Related Issues (20)
- Clarification on ClientArea output HOT 1
- "logModuleCall" Method Vulnerability HOT 1
- How to configure a custom pie chart on reports?
- ModuleChangePackage api call => "Sorry, you must specify a user!" HOT 1
- Admin Area Hook Cancelation Request Deleted is missing Or?
- Order Note HOT 3
- how to know billingCycle in payment gateway development
- Hook AnnouncementAdd/AnnouncementEdit return empty string for title ? HOT 1
- Hooks Priority doesn't mention which run first
- ResetPassword in role management in wrong place HOT 1
- Website down with error "Gateway error 504" when execute the payment gateway callback function addInvoicePayment HOT 1
- optional two Parameter in TLD pricing API
- Hook index is missing loads of entries since the latest merge
- WHMCS
- Incomplete / Wrong Documentation for API Command "DomainGetWhoisInfo"
- Cannot seem to get Module Autoloading to work on WHMCS ver 8.6.1
- RouteProvider \WHMCS\Route\ProviderTrait HOT 1
- TriggerNotificationEvent - incorrect example for passing attributes to localApi call
- Return to admin area
- Billable Item - Paid Status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from developer-docs.