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

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?