Using PQ to access Betfair API

JeffGrant

Well-known Member
Joined
Apr 7, 2021
Messages
516
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I currently have an external python script that access the Betfair API, but I really would rather keep everything in house with PQ or VB.

The Excel Python module didn't like this script, so I have to still run it externally.

The Betfair API, requires the headers of X-Application & X-Authentication to be passed.

In PQ, when accessing a URL, these header parameters are not an option from the dialogue box.

So I add them manually in the Advanced Editor.

Unfortunately, PQ comes back with a Bad (400) error which I assume is attached to these two header parameters.

I read somewhere that PQ cannot be used to access the Betfair API, but Power Build can.

Is this correct? or am I doing something wrong?

Would love some pointers on this one.

Thanks in advance for your help.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,215,133
Messages
6,123,233
Members
449,092
Latest member
SCleaveland

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top