I am new to FreshBooks (not only the API) and I want to use it for some automatically generated invoices. I was trying to run some of the source code examples (the PHP and JS libraries in particular): http://developers.freshbooks.com/api/samplecode/
The problem is that I get an error message: "Connection error"
Do I need to set up anything else in the example files besides my API and token obtained from the FreshBooks site?
I am running the examples from a local server but I don't believe that's the problem.