This topic is locked
[SOLVED]

Unable to connect to API server

3/29/2022 11:10:37 PM
PHPRunner General questions
R
rkgee author

I'll see if I can rephrase my last question better.

Having retrieved an API key from a company I've tried setting up the connection in phprunner. When I click the Run button it reports that a specific element is not specified in the headers. The providers API doc states the following...

Every request must specify a GoCardless-Version header, with a released API version.

GoCardless-Version: 2015-07-06

My question is, how do I add GoCardless-Version: 2015-07-06 Into the header. Sorry, totally new to this. I was so hoping that the connection process was going to as simple and straight forward as the example videos which have been posted up online. No such luck!

Sergey Kornilov admin 3/30/2022

Check REST Views article in the manual. First screen, the one that explains how to create a List operation. There is 'Add request body' button. If you click it you can add request variables and specify their location i.e. in the HTTP header.

R
rkgee author 3/30/2022

Perfect - Thank you