【文件属性】:
文件名称:Balller:Dribbble API v1 的 PHP 包装器
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-17 14:21:17
PHP
Dribbble API PHP 包装器
PHP 包装器。
如何使用
现在需要申请。 一个新的。
有两种使用 API 的方法。
使用 OAuth 授权代码,它可以完全访问 API(即将推出)。
使用客户端访问令牌,它提供对 API 的只读访问。
粘贴以下代码。 如果需要,替换为您的令牌,并包含文件路径:
require 'Dribbble-lite.php' ;
$ token = 'YourTokenHere' ;
$ dribbble = new Dribbble ( $ token );
使用包装方法很容易,因为:
$ dribbble -> request ( 'user/shots' , array ( 'per_page' => 20 ));
干得好! :)
##方法
请求($端点,$params = array())
桶($id,$params = 数
【文件预览】:
Balller-master
----.gitignore(591B)
----src()
--------Dribbble-lite.php(13KB)
----LICENSE.md(1KB)
----README.md(3KB)
----.gitattributes(378B)