From 34be854a14a15c09208cb719427f2bd48b4c4076 Mon Sep 17 00:00:00 2001 From: DraperStudio Date: Mon, 2 Mar 2015 10:52:51 +0100 Subject: [PATCH] Add link to new documentation --- README.md | 70 ++----------------------------------------------------- 1 file changed, 2 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 04161a1..c825bfc 100644 --- a/README.md +++ b/README.md @@ -6,72 +6,6 @@ [![Latest Unstable Version](https://img.shields.io/packagist/vpre/socialiteproviders/youtube.svg?style=flat-square)](https://packagist.org/packages/socialiteproviders/youtube) [![License](https://img.shields.io/packagist/l/socialiteproviders/youtube.svg?style=flat-square)](https://packagist.org/packages/socialiteproviders/youtube) - - -## Contents +## Documentation -- [Installation](#installation) - - [1. Composer](#1-composer) - - [2. Service Provider](#2-service-provider) - - [3. Add the Event and Listeners](#3-add-the-event-and-listeners) - - [4. Services Array and .env](#4-services-array-and-env) - - [Add to `config/services.php`.](#add-to-configservicesphp) - - [Append provider values to your `.env` file](#append-provider-values-to-your-env-file) -- [Usage](#usage) - - - - -## Installation - -### 1. Composer - -```bash -// This assumes that you have composer installed globally -composer require socialiteproviders/youtube -``` - -### 2. Service Provider - -* [See the docs on how to install the `SocialiteProviders` service provider.](https://github.com/SocialiteProviders/Manager#2-service-provider) - - -### 3. Add the Event and Listeners - -* The listener that you will be adding is `'SocialiteProviders\YouTube\YouTubeExtendSocialite@handle',`. - -* [See the docs on how to install](https://github.com/SocialiteProviders/Manager#3-add-the-event-and-listeners) - -### 4. Services Array and .env - -#### Add to `config/services.php`. - -```php -'youtube' => [ - 'client_id' => env('YOUTUBE_KEY'), - 'client_secret' => env('YOUTUBE_SECRET'), - 'redirect' => env('YOUTUBE_REDIRECT_URI'), -], -``` - -#### Append provider values to your `.env` file - -```php -// other values above -YOUTUBE_KEY=yourkeyfortheservice -YOUTUBE_SECRET=yoursecretfortheservice -YOUTUBE_REDIRECT_URI=https://example.com/login -``` - -* [See the main docs for more information](https://github.com/SocialiteProviders/Manager#4-services-array-and-env) - - -## Usage - -* You should now be able to use it like you would regularly use Socialite: - -```php -return Socialite::with('youtube')->redirect(); -``` - -* [See the main docs for more information](https://github.com/SocialiteProviders/Manager#usage) +Full documentation for using this provider can be found at [YouTube Documentation](http://socialiteproviders.github.io/providers/youtube/)