joedawson / youtube

Upload a video to a single YouTube channel with Laravel 5.
MIT License
175 stars 105 forks source link

youtube/auth url is not working ({"message":"Resource not found"}) #104

Closed nadeemse closed 4 years ago

nadeemse commented 5 years ago

Hi,

I have configured everything but when I Am accessing youtube/auth url it's not working. any help ?

joedawson commented 5 years ago

Hi,

Have you enabled the routes?

Many Thanks, Joe Dawson

https://joedawson.me

On Saturday, Feb 02, 2019 at 10:21 am, NADEEM AKHTAR <notifications@github.com (mailto:notifications@github.com)> wrote:

Hi,

I have configured everything but when I Am accessing youtube/auth url it's not working. any help ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/JoeDawson/youtube/issues/104), or mute the thread (https://github.com/notifications/unsubscribe-auth/AA9oIHpQbCVTEm6lqeesP1OLE94zCA48ks5vJWargaJpZM4afhuo).

nadeemse commented 5 years ago
<?php

return [

    /**
     * Client ID.
     */
    'client_id' => env('GOOGLE_CLIENT_ID', null),

    /**
     * Client Secret.
     */
    'client_secret' => env('GOOGLE_CLIENT_SECRET', null),

    /**
     * Scopes.
     */
    'scopes' => [
        'https://www.googleapis.com/auth/youtube',
        'https://www.googleapis.com/auth/youtube.upload',
        'https://www.googleapis.com/auth/youtube.readonly'
    ],

    /**
     * Route URI's
     */
    'routes' => [

        /** 
         * Determine if the Routes should be disabled.
         * Note: We recommend this to be set to "false" immediately after authentication.
         */
        'enabled' => true,

        /**
         * The prefix for the below URI's
         */
        'prefix' => 'youtube',

        /**
         * Redirect URI
         */
        'redirect_uri' => 'callback',

        /**
         * The autentication URI
         */
        'authentication_uri' => 'auth',

        /**
         * The redirect back URI
         */
        'redirect_back_uri' => '/',

    ]

];

Yes I have enabled it. but still nothing.

joedawson commented 4 years ago

@nadeemse can you try clearing your routes and trying again please?