Skip to content

peter9x/laravel-toconline-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Latest Stable Version License

laravel-toconline-api

Laravel Toconline API

Installation

  1. Install the package via Composer:
composer require peter9x/laravel-toconline-api
  1. Publish the configuration file:
php artisan vendor:publish --provider="Mupy\\TOConline\\TOConlineServiceProvider" --tag=config
  1. Add the following to your .env file:
TOC_CLIENT_ID=your-client-id
TOC_CLIENT_SECRET=your-client-secret
TOC_URI_OAUTH=https://example.com/callback
  1. Optional config to add on the .env file:
TOC_BASE_URL=https://example.com
TOC_BASE_URL_OAUTH=https://example.com/oauth

Usage

use Mupy\TOConline\Facades\TOConline;

try {
    $docs = TOConline::api()->documents();
} catch (\Throwable $th) {
    // Handle exceptions as needed
}

About

Laravel Toconline API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages