{"action":"created","issue":{"url":"https://api.github.com/repos/Fullscreen/yt/issues/126","labels_url":"https://api.github.com/repos/Fullscreen/yt/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/Fullscreen/yt/issues/126/comments","events_url":"https://api.github.com/repos/Fullscreen/yt/issues/126/events","html_url":"https://github.com/Fullscreen/yt/issues/126","id":62825262,"number":126,"title":"scopes not passing as parameter","user":{"login":"claudeomusic","id":3822358,"avatar_url":"https://avatars.githubusercontent.com/u/3822358?v=3","gravatar_id":"","url":"https://api.github.com/users/claudeomusic","html_url":"https://github.com/claudeomusic","followers_url":"https://api.github.com/users/claudeomusic/followers","following_url":"https://api.github.com/users/claudeomusic/following{/other_user}","gists_url":"https://api.github.com/users/claudeomusic/gists{/gist_id}","starred_url":"https://api.github.com/users/claudeomusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudeomusic/subscriptions","organizations_url":"https://api.github.com/users/claudeomusic/orgs","repos_url":"https://api.github.com/users/claudeomusic/repos","events_url":"https://api.github.com/users/claudeomusic/events{/privacy}","received_events_url":"https://api.github.com/users/claudeomusic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-18T23:12:58Z","updated_at":"2015-03-18T23:33:52Z","closed_at":null,"body":"tried just doing the very basic thing of initializing an account, with this: (i have @redirect_uri stored in my controller)\r\n```\r\nYt::Account.new(scopes: 'https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile' , redirect_uri: @redirect_uri).authentication_url\r\n```\r\nand the response i get was:\r\n\r\nError: invalid_request\r\n\r\nMissing required parameter: scope\r\n\r\nRequest Details\r\n**scope=**\r\nresponse_type=code\r\n**redirect_uri=http://localhost:3000/youtube/connected** *<- my redirect_uri is getting passed*\r\naccess_type=offline\r\napproval_prompt=auto\r\nclient_id=820356551033-8iaf7ljkf86m92d3tu202b3b67g4eeg6.apps.googleuserco"},"comment":{"url":"https://api.github.com/repos/Fullscreen/yt/issues/comments/83224806","html_url":"https://github.com/Fullscreen/yt/issues/126#issuecomment-83224806","issue_url":"https://api.github.com/repos/Fullscreen/yt/issues/126","id":83224806,"user":{"login":"claudiofullscreen","id":7408595,"avatar_url":"https://avatars.githubusercontent.com/u/7408595?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiofullscreen","html_url":"https://github.com/claudiofullscreen","followers_url":"https://api.github.com/users/claudiofullscreen/followers","following_url":"https://api.github.com/users/claudiofullscreen/following{/other_user}","gists_url":"https://api.github.com/users/claudiofullscreen/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiofullscreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiofullscreen/subscriptions","organizations_url":"https://api.github.com/users/claudiofullscreen/orgs","repos_url":"https://api.github.com/users/claudiofullscreen/repos","events_url":"https://api.github.com/users/claudiofullscreen/events{/privacy}","received_events_url":"https://api.github.com/users/claudiofullscreen/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T23:33:52Z","updated_at":"2015-03-18T23:33:52Z","body":"Hello @claudeomusic! \r\nYou don't need the entire URL to specify the scopes. For instance, try this:\r\n\r\n```ruby\r\nYt::Account.new(scopes: ['youtube', 'userinfo.email', 'userinfo,profile'], redirect_uri: '..your redirect URL..')\r\n```\r\n\r\nDoes that work? I guess I could improve the documentation with an example :sweat_smile: "}}