php-restclient:适用于PHP的通用REST API客户端

时间:2021-04-28 21:33:24
【文件属性】:
文件名称:php-restclient:适用于PHP的通用REST API客户端
文件大小:9KB
文件格式:ZIP
更新时间:2021-04-28 21:33:24
PHP PHP REST客户端 (c)2013-2017年Travis Dent 安装 $ php composer.phar require tcdent/php-restclient 基本用法 $ api = new RestClient ([ 'base_url' => "https://api.twitter.com/1.1" , 'format' => "json" , // https://dev.twitter.com/docs/auth/application-only-auth 'headers' => [ 'Authorization' => 'Bearer ' . OAUTH_BEARER ], ]); $ result = $ api -> get ( "search/tweets" , [ 'q' => "#php" ]); /
【文件预览】:
php-restclient-master
----composer.json(796B)
----restclient.php(10KB)
----LICENSE(1KB)
----README.markdown(9KB)
----test.php(7KB)

网友评论