Using PQ to access Betfair API

JeffGrant

Well-known Member
Joined
Apr 7, 2021
Messages
558
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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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