I am attempting to use the soundcloud api and authenticate my account, and this site https://github.com/mptre/php-soundcloud/wiki/Oauth-2 explains to use a git command from github to download the repository. i have tried downloading manually the files but there were errors in them. this command seems to be doing nothing : $ git clone git://github.com/mptre/php-soundcloud.git
, in fact it's giving me an error.
full code :
<?
$ git clone git://github.com/mptre/php-soundcloud.git
$soundcloud = new Services_Soundcloud('somekey', 'someotherkey', 'wonderfulworldofchris.com/soundcloud');
$authorizeUrl = $soundcloud->getAuthorizeUrl();
?>
<a href="<?php echo $authorizeUrl; ?>">Connect with SoundCloud</a>
To download the repository, you need to install git - http://git-scm.com/
After that, getting the code from command line is as easy as git clone git://github.com/mptre/php-soundcloud.git
. However, this should be done in command line, not in php code.
It is also possible to download the repo as a zip file: https://github.com/mptre/php-soundcloud/archive/master.zip
After you download this project, you need to include "Services_Soundcloud" in your application. Then you should be able to do
<?
$soundcloud = new Services_Soundcloud('somekey', 'someotherkey', 'wonderfulworldofchris.com/soundcloud');
$authorizeUrl = $soundcloud->getAuthorizeUrl();
?>