doutuohan6606 2012-11-25 20:57
浏览 42

php - 使用git命令无法正常工作? [关闭]

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>
  • 写回答

1条回答 默认 最新

  • dongquqiao2010 2012-11-25 21:00
    关注

    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();
    ?>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog