{"action":"created","issue":{"url":"https://api.github.com/repos/njasm/soundcloud/issues/20","labels_url":"https://api.github.com/repos/njasm/soundcloud/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/njasm/soundcloud/issues/20/comments","events_url":"https://api.github.com/repos/njasm/soundcloud/issues/20/events","html_url":"https://github.com/njasm/soundcloud/issues/20","id":99945736,"number":20,"title":"How to use Autoload","user":{"login":"noveweb","id":11202389,"avatar_url":"https://avatars.githubusercontent.com/u/11202389?v=3","gravatar_id":"","url":"https://api.github.com/users/noveweb","html_url":"https://github.com/noveweb","followers_url":"https://api.github.com/users/noveweb/followers","following_url":"https://api.github.com/users/noveweb/following{/other_user}","gists_url":"https://api.github.com/users/noveweb/gists{/gist_id}","starred_url":"https://api.github.com/users/noveweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noveweb/subscriptions","organizations_url":"https://api.github.com/users/noveweb/orgs","repos_url":"https://api.github.com/users/noveweb/repos","events_url":"https://api.github.com/users/noveweb/events{/privacy}","received_events_url":"https://api.github.com/users/noveweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T01:00:14Z","updated_at":"2015-08-10T18:55:51Z","closed_at":null,"body":"Hi, Guy!\r\n\r\nMy application is running on the folder: /admin/\r\nThe Njasm library is on the folder: /admin/classes/Soundcloud/\r\nThe test file is /admin/soundcloud.php\r\n\r\nHow can i use the library on the file soundcloud.php ?\r\nWhere i put the file autoload.php?\r\n\r\nActual try:\r\n<?php\r\nrequire(\"autoload.php\");\r\nuse Njasm\\Soundcloud\\SoundcloudFacade;\r\n\r\n$facade = new SoundcloudFacade(\"xxxx\", \"xxxx\", \"xxxx\");\r\n$url = $facade->getAuthUrl();\r\necho $url;\r\n\r\nActual error:\r\n\r\nFatal error: Class 'Njasm\\Soundcloud\\SoundcloudFacade' not found in /home/noveweb/public_html/admin/soundcloud.php on line 5\r\n\r\nThanks in advance!\r\n"},"comment":{"url":"https://api.github.com/repos/njasm/soundcloud/issues/comments/129564531","html_url":"https://github.com/njasm/soundcloud/issues/20#issuecomment-129564531","issue_url":"https://api.github.com/repos/njasm/soundcloud/issues/20","id":129564531,"user":{"login":"njasm","id":1623137,"avatar_url":"https://avatars.githubusercontent.com/u/1623137?v=3","gravatar_id":"","url":"https://api.github.com/users/njasm","html_url":"https://github.com/njasm","followers_url":"https://api.github.com/users/njasm/followers","following_url":"https://api.github.com/users/njasm/following{/other_user}","gists_url":"https://api.github.com/users/njasm/gists{/gist_id}","starred_url":"https://api.github.com/users/njasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njasm/subscriptions","organizations_url":"https://api.github.com/users/njasm/orgs","repos_url":"https://api.github.com/users/njasm/repos","events_url":"https://api.github.com/users/njasm/events{/privacy}","received_events_url":"https://api.github.com/users/njasm/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T18:55:51Z","updated_at":"2015-08-10T18:55:51Z","body":"Hi @noveweb \r\n\r\nYou ``MUST download ALL the files from the library`` from github, (download the ZIP and uncompress).\r\nYou must not move files from the library around, and with the step above you don't need to.\r\n\r\nThe autoloader is expecting the same folder structure that you find in the Git Repository. so you have to\r\n download the files from the master branch (ALL the Files without changing the folder STRUCTURE) use the github feature that github provides to you on the page of the repository.\r\n\r\nfolder structure:\r\n\r\n /admin/classes/Soundcloud/\r\n    |--> Auth/\r\n    |--> Factory/\r\n    |--> Request/\r\n    |--> Resource/\r\n    |--> UrlBuilder/\r\n    |--> Soundcloud.php\r\n    |--> SoundcloudFacade.php\r\n    |--> autoload.php\r\n\r\n\r\nnow from ``/admin/test.php`` you include the ``autoload.php`` from the library and everything should work as expected.\r\n\r\ntell me how it went.\r\n\r\n\r\n\r\n\r\n"}}