-
Notifications
You must be signed in to change notification settings - Fork 13
/
trickster.php
83 lines (74 loc) · 2.97 KB
/
trickster.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
return array(
/*
|--------------------------------------------------------------------------
| API KEY(s)
|--------------------------------------------------------------------------
| * API keys for some of the Tricks to work.
| + Google
| - URL Shortener: Google API key for URL Shortener. Get the active api key from Google.
| - URL Shortener: Login to Google Console to get the API key.
|
*/
'api' => array(
'google'=>array(
'urlShorten'=>'API_KEY'
)
),
/*
|-------------------------------------------------------------------------------------
| API URLS
|-------------------------------------------------------------------------------------
|
| * URL where the APIs will send the data and get the response from
| + Google
| - URL SHORTENER: API url for Url Shortner
| - SUGGEST: API url for Google Suggest
| - YouTube: API url to get the video data. For: YouTube Embed & Video Info
| + Twitter
| - Social Analytics: API url to get the Tweets Count.
| + Wikipedia
| - Wikipedia Grabber: API url to get the Definitions.
| + Facebook
| - Social Analytics: API url to get Likes Count.
| + TinyURL
| - URL SHORTENER: API url for Url Shortener
|
*/
'apiUrl' => array(
'google' => array(
'urlShorten' => 'https://www.googleapis.com/urlshortener/v1/url',
'suggest' => 'https://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl=en-US&q=%s',
'youtube' => 'https://gdata.youtube.com/feeds/api/videos/%s?v=2&alt=json',
'finance' => 'https://finance.google.com/finance/converter?a=%d&from=%s&to=%s'
),
'wikipedia' => array(
'askWiki' => 'https://en.wikipedia.org/w/api.php?action=opensearch&search=%s&format=xml&limit=1'
),
'facebook' => array(
'social' => 'https://graph.facebook.com/?ids=%s'
),
'tinyurl' => array(
'urlShorten' => 'https://tinyurl.com/api-create.php?url=%s'
),
'vimeo' => array(
'vimeo' => 'https://vimeo.com/api/v2/video/%s.json'
)
),
/*
|--------------------------------------------------------------------------
| Allowed TAGS
|--------------------------------------------------------------------------
|
| Here specify the allowed tag HTML tags for Tag Sweeper.
| Tag Sweeper will skip the tags mentioned here.
| Add More tags that you wish not to be removed.
| Remove tags that you wish should be removed.
| Just add the start of the tags.
|
| Example:
| 'ts_aTags' => '<a><b><i><s><u><p><pre><code>',
|
*/
'ts_aTags' => '<a><b><i><s><u><p><pre><code>',
);