forked from kohana/oauth
/
Flickr.php
39 lines (33 loc) · 1014 Bytes
/
Flickr.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php defined('SYSPATH') or die('No direct script access.');
/**
* OAuth Flickr Provider
*
* Documents for implementing Flickr OAuth can be found at
* <http://www.flickr.com/services/api/auth.oauth.html>.
*
* [!!] This class does not implement the Flickr API. It is only an
* implementation of standard OAuth with Flickr as the service provider.
*
* @package Kohana/OAuth
* @category Provider
* @author Kohana Team
* @copyright (c) 2011 Kohana Team
* @license http://kohanaframework.org/license
* @since 3.1.0
*/
class Kohana_OAuth_Provider_Flickr extends OAuth_Provider {
public $name = 'flickr';
protected $signature = 'HMAC-SHA1';
public function url_request_token()
{
return 'http://www.flickr.com/services/oauth/request_token';
}
public function url_authorize()
{
return 'http://www.flickr.com/services/oauth/authorize';
}
public function url_access_token()
{
return 'http://www.flickr.com/services/oauth/access_token';
}
} // End OAuth_Provider_Flickr