-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample_config.rb
76 lines (70 loc) · 2.06 KB
/
example_config.rb
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
most_of_the_caribbean = [
"1242", # Bahamas
"1246", # Barbados
"1264", # Anguilla
"1268", # Antigua and Barbuda
"1284", # British Virgin Islands
"1345", # Cayman Islands
"1473", # Grenada
"1649", # Turks and Caicos Islands
"1664", # Montserrat
"1670", # Northern Mariana Islands
"1671", # Guam
"1684", # American Samoa
"1758", # Saint Lucia
"1767", # Dominica
"1784", # Saint Vincent and the Grenadines
"1787", # Puerto Rico
"1809", # Dominican Republic
"1868", # Trinidad and Tobago
"1869", # Saint Kitts and Nevis
"1876" # Jamaica
]
Smess.configure do |config|
config.default_sender_id = ENV["SMESS_SENDER_ID"]
config.default_output = :global_mouth
config.register_output({
name: :global_mouth,
country_codes: most_of_the_caribbean + ["20", "33", "34", "44", "46", "49", "594", "966"],
type: :global_mouth,
config: {
username: ENV["SMESS_GLOBAL_MOUTH_USER"],
password: ENV["SMESS_GLOBAL_MOUTH_PASS"],
sender_id: ENV["SMESS_GLOBAL_MOUTH_SENDER_ID"]
}
})
config.register_output({
name: :twilio,
country_codes: ["1", "971"],
type: :twilio,
config: {
sid: ENV["SMESS_TWILIO_SID"],
# auth_token: ENV["SMESS_TWILIO_AUTH_TOKEN"],
api_key: ENV["SMESS_TWILIO_API_KEY_SID"],
api_secret: ENV["SMESS_TWILIO_API_KEY_SECRET"],
from: ENV["SMESS_TWILIO_FROM"],
callback_url: ENV["SMESS_TWILIO_CALLBACK_URL"]
}
})
config.register_output({
name: :card_board_fish,
country_codes: ["212"],
type: :card_board_fish,
config: {
username: ENV["SMESS_CARD_BOARD_FISH_USER"],
password: ENV["SMESS_CARD_BOARD_FISH_PASS"]
}
})
config.register_output({
name: :clickatell,
country_codes: ["1441"],
type: :clickatell,
config: {
api_id: ENV["SMESS_CLICKATELL_API_ID"],
user: ENV["SMESS_CLICKATELL_USER"],
pass: ENV["SMESS_CLICKATELL_PASS"],
sender_id: ENV["SMESS_CLICKATELL_SENDER_ID"],
sender_ids: ENV["SMESS_CLICKATELL_SENDER_IDS"]
}
})
end