This is my first time messing with SOAP. PHP Code: $params = array( 'user' => 'username@gmail.com',
Making SOAP API calls to MaxBounty using php.
2
This is my first time messing with SOAP.
The
$return_string = $client->call('getKey','getTodaySubIDStats','getYesterdayS ubIDStats','getMonthToDateSubIDStats','getLastMont hSubIDStats', $params);
spits out
Fatal error: Uncaught SoapFault exception: [Client] Function ("call") is not a valid method for this service in /home/site82/public_html/stats.php:20 Stack trace: #0 /home/site82/public_html/stats.php(20): SoapClient->__call('call', Array) #1 /home/site82/public_html/stats.php(20): SoapClient->call('getKey', 'getTodaySubIDSt...', 'getYesterdaySub...', 'getMonthToDateS...', 'getLastMonthSub...', Array) #2 {main} thrown in /home/site82/public_html/stats.php on line 20
So I E-Mailed support and got this
so I tried...
$return_string = $client->getTodaySubIDStats(user,password,keyStr,subId);
and it then spits out
Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error in /home/site82/public_html/stats.php:17 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://www.maxb...', '', 1, 0) #1 /home/site82/public_html/stats.php(17): SoapClient->__call('getTodaySubIDSt...', Array) #2 /home/site82/public_html/stats.php(17): SoapClient->getTodaySubIDStats('user', 'password', 'keyStr', 'subId') #3 {main} thrown in /home/site82/public_html/stats.php on line 17
How do I call it the correct way??
WSDL is at http://www.maxbounty.com/api/api.cfc?wsdl
PHP Code:
$params = array(
'user' => 'username@gmail.com',
'password' => 'password',
'keyStr' => $keyStr,
'subId' => $subId);
$return_string = $client->call('getKey','getTodaySubIDStats','getYesterdaySubIDStats','getMonthToDateSubIDStats','getLastMonthSubIDStats', $params);
$return_string = $client->call('getKey','getTodaySubIDStats','getYesterdayS ubIDStats','getMonthToDateSubIDStats','getLastMont hSubIDStats', $params);
spits out
Fatal error: Uncaught SoapFault exception: [Client] Function ("call") is not a valid method for this service in /home/site82/public_html/stats.php:20 Stack trace: #0 /home/site82/public_html/stats.php(20): SoapClient->__call('call', Array) #1 /home/site82/public_html/stats.php(20): SoapClient->call('getKey', 'getTodaySubIDSt...', 'getYesterdaySub...', 'getMonthToDateS...', 'getLastMonthSub...', Array) #2 {main} thrown in /home/site82/public_html/stats.php on line 20
So I E-Mailed support and got this
so I tried...
$return_string = $client->getTodaySubIDStats(user,password,keyStr,subId);
and it then spits out
Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error in /home/site82/public_html/stats.php:17 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://www.maxb...', '', 1, 0) #1 /home/site82/public_html/stats.php(17): SoapClient->__call('getTodaySubIDSt...', Array) #2 /home/site82/public_html/stats.php(17): SoapClient->getTodaySubIDStats('user', 'password', 'keyStr', 'subId') #3 {main} thrown in /home/site82/public_html/stats.php on line 17
How do I call it the correct way??
WSDL is at http://www.maxbounty.com/api/api.cfc?wsdl
- webpro4hire
Next Topics on Trending Feed
-
2