Here is an example PHP script which uses the API to print the gateway's uptime. The completed script is available as an attachment on this page. Many thanks to the kind anonymous author for allowing me to post this example!
Download the full source code.
- Start a new PHP script. Configure the script for your particular gateway
- Log in to your gateway. This will save your authentication cookies in memory so that subsequent calls will be allowed.
- Build a call to the gateway.list method to get information about the gateway.