2017 © Pedro Peláez
 

library socialite-chatwork

Socialite for ChatWork

image

revolution/socialite-chatwork

Socialite for ChatWork

  • Thursday, May 10, 2018
  • by revolution
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Socialite for ChatWork

http://developer.chatwork.com/ja/, (*1)

Requirements

  • PHP >= 7.2

Installation

composer require revolution/socialite-chatwork

config/services.php

    'chatwork' => [
        'client_id'     => env('CHATWORK_CLIENT_ID'),
        'client_secret' => env('CHATWORK_CLIENT_SECRET'),
        'redirect'      => env('CHATWORK_REDIRECT'),
    ],

.env

CHATWORK_CLIENT_ID=
CHATWORK_CLIENT_SECRET=
CHATWORK_REDIRECT=

Usage

routes/web.php, (*2)

Route::get('login', 'ChatWorkController@login');
Route::get('callback', 'ChatWorkController@callback');

ChatWorkController, (*3)

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Socialite;

class ChatWorkController extends Controller
{
    public function login()
    {
        return Socialite::driver('chatwork')->redirect();
    }

    public function callback()
    {
        $user = Socialite::driver('chatwork')->user();
        dd($user);
    }
}

Scopes

http://developer.chatwork.com/ja/oauth.html#secAppendix, (*4)

    public function login()
    {
        return Socialite::driver('chatwork')
                        ->setScopes(['users.all:read'])
                        ->redirect();
    }

Demo

https://github.com/kawax/socialite-project, (*5)

LICENCE

MIT Copyright kawax, (*6)

The Versions

10/05 2018

dev-master

9999999-dev

Socialite for ChatWork

  Sources   Download

MIT

The Requires

 

The Development Requires

by kawax

laravel socialite chatwork

10/05 2018

1.0.2

1.0.2.0

Socialite for ChatWork

  Sources   Download

MIT

The Requires

 

The Development Requires

by kawax

laravel socialite chatwork

10/05 2018

1.0.1

1.0.1.0

Socialite for ChatWork

  Sources   Download

MIT

The Requires

 

The Development Requires

by kawax

laravel socialite chatwork

18/11 2017

1.0.0

1.0.0.0

Socialite for ChatWork

  Sources   Download

MIT

The Requires

 

The Development Requires

by kawax

laravel socialite chatwork

18/11 2017

0.0.2

0.0.2.0

Socialite for ChatWork

  Sources   Download

MIT

The Requires

 

The Development Requires

by kawax

laravel socialite chatwork

18/11 2017

0.0.1

0.0.1.0

Socialite for ChatWork

  Sources   Download

MIT

The Requires

 

The Development Requires

by kawax

laravel socialite chatwork