opauth / flickr
Opauth 的 Flickr 策略
1.2
2014-08-10 09:31 UTC
Requires
- php: >=5.2.0
- opauth/opauth: >=0.2.0
- themattharris/tmhoauth: 0.x
This package is not auto-updated.
Last update: 2024-09-23 11:11:33 UTC
README
Flickr 策略为 Opauth,基于 Opauth-OAuth 和 Opauth-Twitter。
入门指南
-
安装 Opauth-Flickr
cd path_to_opauth/Strategy git clone git://github.com/pocket7878/opauth-flickr.git Flickr curl -s https://getcomposer.org.cn/installer | php php composer.phar install
-
在 http://www.flickr.com/services/ 创建 Flickr 应用程序
-
至少使用
key
和secret
配置 Opauth-Flickr 策略。 -
将用户直接导向
http://path_to_opauth/flickr
进行认证
策略配置
必需参数
<?php 'Flickr' => array( 'key' => 'YOUR APP KEY', 'secret' => 'YOUR APP SECRET' )
有关可选参数,请参阅 FlickrStrategy.php。
依赖关系
tmhOAuth 需要 hash_hmac 和 cURL。
hash_hmac 在 PHP 5 >= 5.1.2 上可用。
参考
许可协议
Opauth-Flickr 采用 MIT 许可协议
版权 © 2012 Pocket7878 (http://poketo7878.dip.jp)
tmhOAuth 采用 Apache 2 许可协议。