This repository contains sample files demonstrating OpenAPI interactions in PHP.
Since this is only backend, we recommend to take a look at the more detailed (and also web based) samples of the JavaScript repository.
This repository contains sample code for developers working with Saxo's OpenAPI using PHP.
To get started, make sure you:
- Create a (free) developer account on the Developer Portal.
- Check out the Reference Documentation and Learn sections.
- Create an app in Application Management, or obtain a 24-hour access token when required.
Besides the developer account:
- cURL is used for the samples. GZip and HTTP/2 when supported.
- Supported PHP versions: PHP 7 and higher. A version of PHP with active support is strongly advised.
- Authentication
- OAuth2 Code Flow for websites
- OAuth2 PKCE Flow for single page apps (only when Code Flow is not possible)
- OAuth2 Certificate Based Flow (only for certain Saxo partners)
- API requests
- Basics
Suggestions? Comments? Reach us via Github or openapisupport@saxobank.com.