Completed
Push — master ( 6b2a27...bd3117 )
by Stephan
03:24
created

ApiKeys::getMozscapeAccessId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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