From 30d5dffded8b43416852ca7eb2d76561a56dcfed Mon Sep 17 00:00:00 2001 From: DraperStudio Date: Mon, 2 Mar 2015 10:51:40 +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 1ae539f..cebb292 100644 --- a/README.md +++ b/README.md @@ -6,72 +6,6 @@ [![Latest Unstable Version](https://img.shields.io/packagist/vpre/socialiteproviders/instagram.svg?style=flat-square)](https://packagist.org/packages/socialiteproviders/instagram) [![License](https://img.shields.io/packagist/l/socialiteproviders/instagram.svg?style=flat-square)](https://packagist.org/packages/socialiteproviders/instagram) - - -## 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/instagram -``` - -### 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\Instagram\InstagramExtendSocialite@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 -'instagram' => [ - 'client_id' => env('INSTAGRAM_KEY'), - 'client_secret' => env('INSTAGRAM_SECRET'), - 'redirect' => env('INSTAGRAM_REDIRECT_URI'), -], -``` - -#### Append provider values to your `.env` file - -```php -// other values above -INSTAGRAM_KEY=yourkeyfortheservice -INSTAGRAM_SECRET=yoursecretfortheservice -INSTAGRAM_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('instagram')->redirect(); -``` - -* [See the main docs for more information](https://github.com/SocialiteProviders/Manager#usage) +Full documentation for using this provider can be found at [Instagram Documentation](http://socialiteproviders.github.io/providers/instagram/)