Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8623173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:13:18+00:00 2026-06-12T07:13:18+00:00

Concerning the new Paypal SDK, there is almost no useful example code, and the

  • 0

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.

In attempting to construct a PPAPIService object, where is the list of possible sevice names?
ie: $this->serviceName = $serviceName; (in the constructor) What is the string syntax for these?

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?

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.

from the PPAPIService.php file:

class PPAPIService
{
public $endpoint;
public $serviceName;
private $logger;

public function __construct($serviceName = "")
{
    $this->serviceName = $serviceName; //is there ANY documentation about the syntax and types of service names?
    $config = PPConfigManager::getInstance();
    $this->endpoint = $config->get('service.EndPoint');
    $this->logger = new PPLoggingManager(__CLASS__);
}

public function setServiceName($serviceName)
{
    $this->serviceName = $serviceName;
}


public function makeRequest($apiMethod, $params, $apiUsername = null, $accessToken = null, $tokenSecret = null)
{
//what are the apiMethod types? syntax? and params? type.. options...??
}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:13:19+00:00Added an answer on June 12, 2026 at 7:13 am

    Well, you do not have to create a PPAPIService object directly. Let’s say you want to use the Invoicing SDK, here’s what you would do

    $invoiceService = new InvoiceService();
    $invoiceService->setAccessToken($accessToken);
    $invoiceService->setTokenSecret($tokenSecret);
    $createInvoiceResponse = $invoiceService->CreateInvoice($createInvoiceRequest);
    

    There’s one service class (such as InvoiceService in this code snippet) per API that you would instantiate as per your needs. The API username/password are picked from the configuration file and the access token/token secret are set via code since they typically tend to be different for different invocations.

    Which API are you trying to call, by the way?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to coffeescript, and while there is extensive information concerning the proper method
I'm new to flex and I have a question concerning bitmapData and its width
Being fairly new to C++ I have a question bascially concerning the g++ compiler
There was a question concerning removal of appendices in the program. I use such
I have a question concerning encryption, more specifically encryption that requires no internet connection
I'm new to MVC and I have a question concerning my view. I have
This is a question concerning a list of lists. Dim smallList As New List(Of
I'm new to Obj-C and I have a question concerning the autorelease. Is it
I have a simple question concerning the File class. In an example I saw:
This is a really simple question concerning a method. I'm pretty new to C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.