DominicFinn / UNiDAYS.Php_OAuth2.0

A PHP example of the OAuth 2.0 flow and UNiDAYS Connect without the use of an SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

About

A PHP example of the OAuth 2.0 flow and UNiDAYS Connect without the use of an SDK

License:MIT License


Languages

Language:PHP 100.0%