Services
last analyzed

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Importance

Changes 5
Bugs 2 Features 3
Metric Value
c 5
b 2
f 3
dl 0
loc 65
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/16
12
 */
13
14
/**
15
 * SEOstats provider list and service URLs
16
 * @package    SEOstats
17
 */
18
interface Services
19
{
20
    const PROVIDER = '["alexa","google","ose","semrush","mozscape","sistrix","social"]';
21
22
    // Alexa public report URLs.
23
    const ALEXA_SITEINFO_URL = 'http://www.alexa.com/siteinfo/%s';
24
    const ALEXA_GRAPH_URL = 'http://traffic.alexa.com/graph?&o=f&c=1&y=%s&b=ffffff&n=666666&w=%s&h=%s&r=%sm&u=%s';
25
26
    // Sistrix Visibility Index public report URL.
27
    // @link http://www.sistrix.com/blog/870-sistrix-visibilityindex.html
28
    const SISTRIX_VI_URL = 'http://www.sichtbarkeitsindex.de/%s';
29
    const SISTRIX_API_VI_URL = 'http://api.sistrix.net/domain.sichtbarkeitsindex?api_key=%s&domain=%s&country=%s&format=json';
30
    const SISTRIX_API_CREDITS_URL = 'http://api.sistrix.net/credits?api_key=%s&format=json';
31
32
    // SEMrush API Endpoints.
33
    const SEMRUSH_BE_URL = 'http://%s.backend.semrush.com/?action=report&type=%s&domain=%s';
34
    const SEMRUSH_GRAPH_URL = 'http://semrush.com/archive/graphs.php?domain=%s&db=%s&type=%s&w=%s&h=%s&lc=%s&dc=%s&l=%s';
35
    const SEMRUSH_WIDGET_URL = 'http://widget.semrush.com/widget.php?action=report&type=%s&db=%s&domain=%s';
36
37
    // Mozscape (f.k.a. Seomoz) Link metrics API Endpoint.
38
    const MOZSCAPE_API_URL = 'http://lsapi.seomoz.com/linkscape/url-metrics/%s?Cols=%s&AccessID=%s&Expires=%s&Signature=%s';
39
40
    // Google Websearch API Endpoint.
41
    const GOOGLE_APISEARCH_URL = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=%s&q=%s';
42
43
    // Google Pagespeed Insights API Endpoint.
44
    const GOOGLE_PAGESPEED_URL = 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=%s&strategy=%s&key=%s';
45
46
    // Google +1 Fastbutton URL.
47
    const GOOGLE_PLUSONE_URL = 'https://plusone.google.com/u/0/_/+1/fastbutton?count=true&url=%s';
48
49
    // Open Site Explorer's public report URL.
50
    const OPENSITEEXPLORER_URL = 'http://www.opensiteexplorer.org/%s?group=0&page=%s&site=%s&sort=';
51
52
    // Facebook FQL API Endpoint.
53
    const FB_LINKSTATS_URL = 'https://api.facebook.com/method/fql.query?query=%s&format=json';
54
55
    // Twitter URL tweet count API Endpoint (Use of this Endpoint is actually not allowed (see link)!).
56
    // @link https://dev.twitter.com/discussions/5653#comment-11514
57
    const TWEETCOUNT_URL = 'http://cdn.api.twitter.com/1/urls/count.json?url=%s';
58
59
    // Delicious API Endpoint.
60
    const DELICIOUS_INFO_URL = 'http://feeds.delicious.com/v2/json/urlinfo/data?url=%s';
61
62
    // Digg API Endpoint.
63
    // @link http://widgets.digg.com/buttons.js
64
    const DIGG_INFO_URL = 'http://widgets.digg.com/buttons/count?url=%s&cb=_';
65
66
    // LinkedIn API Endpoint.
67
    // Replaces deprecated share count Url "http://www.linkedin.com/cws/share-count?url=%s".
68
    // @link http://developer.linkedin.com/forum/discrepancies-between-share-counts
69
    const LINKEDIN_INFO_URL = 'http://www.linkedin.com/countserv/count/share?url=%s&callback=_';
70
71
    // Pinterest API Endpoint.
72
    const PINTEREST_INFO_URL = 'http://api.pinterest.com/v1/urls/count.json?url=%s&callback=_';
73
74
    // StumbleUpon API Endpoint.
75
    const STUMBLEUPON_INFO_URL = 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url=%s';
76
77
    // Url to get share count via VKontakte from
78
    const VKONTAKTE_INFO_URL = 'http://vk.com/share.php?act=count&index=1&url=%s';
79
80
    // Url to get share count via Xing from
81
    const XING_SHAREBUTTON_URL = 'https://www.xing-share.com/app/share?op=get_share_button;counter=top;url=%s';
82
}
83