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

  • SEARCH
  • Home
  • 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 7662619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:50:48+00:00 2026-05-31T13:50:48+00:00

So i have two problems with getting paypal transaction summary with YQL. First if

  • 0

So i have two problems with getting paypal transaction summary with YQL. First if I try put in my sandbox api info into the yql console, i get results ..sometimes. I figured i should not worry about this and perhaps the paypal sandbox api is just a but flaky but surely the real thing will be more reliable.

However i cannot figure out how to get YQL to use the real api url instead of sandbox.
I will be happy if just this is answered.

The second issue is getting it to run in php. If i copy the entire encoded REST query url at the bottom of the console into php and curl it, then it works. (in sandbox mode of course).

However if i try breaking up the query passing it parameters then building the string and wrapping it in urlencode() before curling. I get null.

Here is what the code to build the string looks like.

$yql_base_url = " https://query.yahooapis.com/v1/public/yql ";
$yql_query = "SELECT * from paypal.transactions"
." WHERE APIUsername=$username" 
." AND APIPassword=$password" 
." AND Signature=$signature" 
." AND StartDate='2012-01-00T00:00:00'";

$yql_query_url = $yql_base_url . "?q=" . $yql_query;
$yql_query_url .= "&diagnostics=true&env=store://datatables.org/alltableswithkeys";
$yql_query_url .= "&format=json";
$yql_query_url = urlencode($yql_query_url);

This fails with or without the urlencode()

  • 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-05-31T13:50:49+00:00Added an answer on May 31, 2026 at 1:50 pm

    first thing – here is the corrected code – basically you have spaces in your base url and instead of urlencoding the parameters, you are url encoding the whole url.

        $yql_base_url = "https://query.yahooapis.com/v1/public/yql";
    $yql_query = "SELECT * from paypal.transactions"
    ." WHERE APIUsername='ppalav_1285013097_biz_api1.yahoo.com'" 
    ." AND APIPassword='1285013102'" 
    ." AND Signature='AFcWxV21C7fd0v3bYYYRCpSSRl31AeJNr8zWn6wGkU8dNHzEDaF3ZXwz'" 
    ." AND StartDate='2012-01-00T00:00:00'";
    
    $yql_query_url = $yql_base_url . "?q=" . urlencode($yql_query);
    $yql_query_url .= "&diagnostics=true&env=" . urlencode("store://datatables.org/alltableswithkeys");
    $yql_query_url .= "&format=json";
    
    echo $yql_query_url;
    
    // Make call with cURL
    $session = curl_init($yql_query_url);
    curl_setopt($session, CURLOPT_RETURNTRANSFER,true);
    $json = curl_exec($session);
    // Convert JSON to PHP object 
    $phpObj =  json_decode($json);
    

    now to answer your other questions:
    – yes PayPal sandbox is slow unfortunately, we should’ve added longer timeouts in the table.
    – the reason why only sandbox is supported currently is because we released it to see the interest. If you are interested in a table (or a config to say which env you want to use), we can release an updated table.

    thanks for trying this out btw and do let us know how we can improve it to make it more useful. Btw here is the source of the paypal transaction tables in case if you want to refer to it or modify it: https://github.com/paypalx/yql-tables/tree/master/paypal

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

Sidebar

Related Questions

I have two cmake-related problems: first, I can't make it to find the includes
We are having some problems deploying our WCF services into IIS7. We have two
I am building my first extension and have problems getting background page loaded scripts
I'm getting two problems in my FooterSelectorView.h and I have no idea why. One
I have two problems, the first has been solved. Current problem If I embed
I have problems getting two Textviews to behave the way I want. I want
I have two problems. The first one is that I'm using JSP and that
I have my program that can draw rectangles. I have two problems I can't
I have some localization problems in my webpage. There are basically two problems (that
I'm having some problems trying to perform a query. I have two tables, one

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.