-
Notifications
You must be signed in to change notification settings - Fork 13
/
trickster.php
126 lines (116 loc) · 4.92 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
return [
/*
|--------------------------------------------------------------------------
| 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.
| + Exchange Rate
| - Currency Converter API KEY
| + Currency Layer
| - Currency Converter API Key
|
*/
'api' => [
'google' => [
'urlShorten' => '',
],
'exchangerate' => [
'api' => '', # GET IT FROM https://www.exchangerate-api.com/
],
'currencylayer' => [
'api' => '', # GET IT FROM https://www.currencylayer.com/
],
],
/*
|-------------------------------------------------------------------------------------
| 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
| + ExchangeRate
| - url: API URL for www.exchangerate-api.com
| + CurrencyLayer
| - url: API URL for currencylayer.com
|
*/
'apiUrl' => [
'google' => [
'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',
],
'wikipedia' => [
'askWiki' => 'https://en.wikipedia.org/w/api.php?action=opensearch&search=%s&format=xml&limit=1',
],
'facebook' => [
'social' => 'https://graph.facebook.com/?ids=%s',
],
'tinyurl' => [
'urlShorten' => 'https://tinyurl.com/api-create.php?url=%s',
],
'vimeo' => [
'vimeo' => 'https://vimeo.com/api/v2/video/%s.json',
],
'exchangerate'=> [
'url' => 'https://v3.exchangerate-api.com/pair/%s/%s/%s', # /%s/%s/%s => /API_KEY/FROM/TO
],
'currencylayer'=> [
'url' => 'http://apilayer.net/api/live?access_key=%s¤cies=%s&format=1', # /%s/%s/%s => ?API_KEY&FROM/TO
],
],
/*
|--------------------------------------------------------------------------
| 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>',
/**
* ---------------------------------------------------------------------------
* Currency Converter Configurations
* ---------------------------------------------------------------------------
*
* # Configuration Items
* - converter: The Convert Service that will be used to convert the Currency.
* + exchangerate: Use the exchangerate-api.com API
* + currencylayer: Use the Currency Layer API
* + smartconvert: Covert Using Smart Convertion Algorithm. It increases your
* conversion limit quota. Smart Convert uses all the active
* apis that you have setup or provided the API for.
* - cache: Caching is done to reduce the cost and improve the monthly quota limit.
* + The Time is in minutes.
* + Lesser the Time more quota is used.
* + Set 'cache' => 0, (Zero) for realtime updates from the server.
* + Note: The server (exchangerate-api.com/currencylayer.com) upadtes the rate on hourly basis only,
* so the quota will be utilized whereas the rate might not change.
*/
'currency' => [
'converter' => NULL, # By default it utilizes smart conversion
'cache' => 30, # Set it to 0 for real-time.
],
];