Note that there are some explanatory texts on larger screens.

plurals
  1. POpaypal PPAPIService new SDK
    text
    copied!<p>Concerning the new Paypal SDK, there is almost no useful example code, and the Internet is littered with examples of the old SDK. My question concerns making an API request for a third party paypal account for which i have obtained the token and secretToken through the permissions API.</p> <p>In attempting to construct a PPAPIService object, where is the list of possible sevice names?<br> ie: $this->serviceName = $serviceName; (in the constructor) What is the string syntax for these?</p> <p>In regards to the makeRequest method, how do I define the $apiMethod variable, and what is the format of the $params variable? What are the different parameters?</p> <p>A simple example of how to just obtain the account balance of the authorized third party account would be extremely helpful. I am using PHP.</p> <p>from the PPAPIService.php file:</p> <pre><code>class PPAPIService { public $endpoint; public $serviceName; private $logger; public function __construct($serviceName = "") { $this-&gt;serviceName = $serviceName; //is there ANY documentation about the syntax and types of service names? $config = PPConfigManager::getInstance(); $this-&gt;endpoint = $config-&gt;get('service.EndPoint'); $this-&gt;logger = new PPLoggingManager(__CLASS__); } public function setServiceName($serviceName) { $this-&gt;serviceName = $serviceName; } public function makeRequest($apiMethod, $params, $apiUsername = null, $accessToken = null, $tokenSecret = null) { //what are the apiMethod types? syntax? and params? type.. options...?? } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload