New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jrm2k6/laradit

Reddit API Wrapper for Laravel
1,677 4
Install
composer require jrm2k6/laradit
Latest Version:0.0.3
PHP:>=5.3.0
License:MIT
Last Updated:Jul 3, 2017
Links: GitHub  ·  Packagist
Maintainer: jrm2k6

##Installation

composer require jrm2k6/laradit

Configuration

Add in config/app.php:

 'providers' => [
    JD\Laradit\LaraditAuthenticationServiceProvider::class,
    JD\Laradit\LaraditResourceServiceProvider::class,
  ]

Add in your .env file:

LARADIT_CLIENT_ID=your-client-id
LARADIT_CLIENT_SECRET=yout-client-secret
LARADIT_OAUTH_REDIRECT_URI=your-callback
LARADIT_REDDIT_USERNAME=your-username
LARADIT_REDDIT_PASSWORD=your-password
LARADIT_USER_AGENT=your-user-agent

Usage

To get a authentication token for script apps:

LaraditAuth::getScriptAuthenticationManager()->getAccessToken();

You can then set the token:

 Laradit::setAuthToken($authToken);

Related Packages

railken/lara-eye
38,915 39
api
juampi92/api-resources

Manage your resources maintaining API versioning

934,433 111
tailflow/laravel-orion

Orion for Laravel allows you to build a fully featured REST API based on your El...

803,682 1,592

Version History

Version Released PHP License
0.0.3 >=5.3.0 MIT
0.0.2 >=5.3.0 MIT
0.0.1 >=5.3.0 MIT