1
|
|
|
<?php |
2
|
|
|
namespace SEOstats\Config; |
3
|
|
|
|
4
|
|
|
/** |
5
|
|
|
* Configuration constants for the SEOstats library. |
6
|
|
|
* |
7
|
|
|
* @package SEOstats |
8
|
|
|
* @author Stephan Schmitz <[email protected]> |
9
|
|
|
* @copyright Copyright (c) 2010 - present Stephan Schmitz |
10
|
|
|
* @license http://eyecatchup.mit-license.org/ MIT License |
11
|
|
|
* @updated 2013/12/11 |
12
|
|
|
*/ |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* Client API keys |
16
|
|
|
* @package SEOstats |
17
|
|
|
*/ |
18
|
|
|
class ApiKeys |
19
|
|
|
{ |
20
|
|
|
// To acquire an API key, visit Google's APIs Console here: |
21
|
|
|
// https://code.google.com/apis/console |
22
|
|
|
// In the Services pane, activate the "PageSpeed Insights API" (not the service!). |
23
|
|
|
// Next, go to the API Access pane. The API key is near the bottom of that pane, |
24
|
|
|
// in the section titled "Simple API Access.". |
25
|
|
|
const GOOGLE_SIMPLE_API_ACCESS_KEY = ''; |
26
|
|
|
|
27
|
|
|
// To acquire a Mozscape (f.k.a. SEOmoz) API key, visit: |
28
|
|
|
// https://moz.com/products/api/keys |
29
|
|
|
const MOZSCAPE_ACCESS_ID = ''; |
30
|
|
|
const MOZSCAPE_SECRET_KEY = ''; |
31
|
|
|
|
32
|
|
|
// To acquire a SISTRIX API key, visit: |
33
|
|
|
// http://www.sistrix.de |
34
|
|
|
const SISTRIX_API_ACCESS_KEY = ''; |
35
|
|
|
|
36
|
1 |
|
public static function getGoogleSimpleApiAccessKey() { |
37
|
|
|
return env('GOOGLE_SIMPLE_API_ACCESS_KEY', self::GOOGLE_SIMPLE_API_ACCESS_KEY); |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
public static function getMozscapeAccessId() { |
41
|
|
|
return env('MOZSCAPE_ACCESS_ID', self::MOZSCAPE_ACCESS_ID); |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
public static function getMozscapeSecretKey() |
45
|
|
|
{ |
46
|
|
|
return env('MOZSCAPE_SECRET_KEY', self::MOZSCAPE_SECRET_KEY); |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
public static function getSistrixApiAccessKey() |
50
|
|
|
{ |
51
|
|
|
return env('SISTRIX_API_ACCESS_KEY', self::SISTRIX_API_ACCESS_KEY); |
52
|
|
|
} |
53
|
|
|
} |
54
|
|
|
|