Laravel-Podio library which includes
- Username and password flow
- App authentication flow
- Podio API library
- Podio rate-limit
- php: ^5.3.0
- laravel/framework: ^5.2
- podio/podio-php: ^4.3
- Install package
composer require rijosh/podio-auth
- Include the
PodioAuthServiceProvider
inconfig/app.php
provider listPodioAuth\PodioAuthServiceProvider::class
- run
publish
commandThis will createphp artisan vendor:publish
podio.php
file inconfig
directory. - Update
podio.php
with configuration data. - Run the following commands
* php artisan migrate * php artisan sync:api
Use package library for authentication and Podio API
<?php
namespace App\Http\Controllers;
use PodioAuth\Controllers\PodioAuth;
use PodioAuth\Repositories\Podio;
class TestController extends Controller
{
public function getTest()
{
PodioAuth::podioUserAuth(); // username-password authentication
PodioAuth::podioAppAuth(12344); // App authentication
PodioAuth::podioAppAuthWithName("name"); // Authenticate app with name specified in config/podio.php
Podio::PodioApp_get(123456); // Get Podio app details
}
}
Contributions to Podio Auth library are welcome.