1 | <?php |
||
28 | class Configuration extends Nette\Object |
||
29 | { |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | public $consumerKey; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | public $consumerSecret; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | public $permission; |
||
44 | |||
45 | /** |
||
46 | * @var array |
||
47 | */ |
||
48 | public $domains = [ |
||
49 | 'oauth' => 'https://api.500px.com/v1/oauth/', |
||
50 | 'api' => 'https://api.500px.com/v1/', |
||
51 | 'upload' => 'http://upload.500px.com/v1/', |
||
52 | ]; |
||
53 | |||
54 | /** |
||
55 | * @param string $consumerKey |
||
56 | * @param string $consumerSecret |
||
57 | */ |
||
58 | public function __construct($consumerKey, $consumerSecret) |
||
63 | |||
64 | /** |
||
65 | * Build the URL for given domain alias, path and parameters. |
||
66 | * |
||
67 | * @param string $name The name of the domain |
||
68 | * @param string $path Optional path (without a leading slash) |
||
69 | * @param array $params Optional query parameters |
||
70 | * |
||
71 | * @return Http\UrlScript The URL for the given parameters |
||
72 | */ |
||
73 | public function createUrl($name, $path = NULL, $params = []) |
||
90 | } |