php-oauth2-example
This is a example code to perform OAuth 2.0 authentication and interact with the UNiDAYS's Connect product without a SDK.
This is example is a fork from https://github.com/XeroAPI/php-oauth2-example
Getting Started
To run locally, you'll need a local web server with PHP support. You can use XAMPP or any other web server.
- Download dependencies with Composer using the following command:
composer install
env
We use an .env file to store our credentials.
CLIENT_ID=
CLIENT_SECRET=
You can get these credentials from your UNiDAYS Contact.
- index.php
Take it for a spin
Launch your browser and navigate to http://localhost:8080 (or whatever the correct path is for your installation).