-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.ini
More file actions
144 lines (136 loc) · 5.85 KB
/
api.ini
File metadata and controls
144 lines (136 loc) · 5.85 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[PARAM]
main_auth_id = MAODUZYTQ0Y2FMYJBLOW
main_auth_token = Mzk0MzU1Mzc3MTc1MTEyMGU2M2RlYTIwN2UyMzk1
auth_id = SAMJBLMMU4NMFHNZE2NW
auth_token = Y2I4YjI2Mjk4MDZmZTMzZGNhZTE0ZGZhNzZkMzYy
country_iso = US
text_message = Hello World !!! This is Plivo SMS API message...
[API]
account_api = https://api.plivo.com/v1/Account/{auth_id}/
pricing_api = https://api.plivo.com/v1/Account/{main_auth_id}/Pricing/?country_iso={country_iso}
send_sms_api = https://api.plivo.com/v1/Account/{auth_id}/Message/
detail_single_sms_api = https://api.plivo.com/v1/Account/{auth_id}/Message/{message_uuid}/
# [RES] is kept only for testing purpose, so that I don't have to HIT API everytime since its costly.
[RES]
account_res = {
"account_type": "standard",
"address": "340 Pine St, San Francisco, CA - 94104",
"api_id": "c31b36be-0da2-11e4-bd8a-12313f016a39",
"auth_id": "MANWVLYTK4ZWU1YTY4ZT",
"auto_recharge": true,
"billing_mode": "prepaid",
"cash_credits": "23.79822",
"city": "San Francisco",
"name": "Han Solo",
"resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/",
"state": "California",
"timezone": "America/Los_Angeles"
}
send_sms_res = {
"message": "message(s) queued",
"message_uuid": ["42dd4bea-f92b-11e7-aa7e-02ad5072be3e"],
"api_id": "db342550-7f1d-11e1-8ea7-1231380bc196"
}
detail_single_sms_res = {
"api_id": "035eeada-6df1-11e6-b608-06a72a185e87",
"error_code": "200",
"from_number": "18552828641",
"message_direction": "outbound",
"message_state": "failed",
"message_time": "2016-08-17 21:22:36+05:30",
"message_type": "sms",
"message_uuid": "2a340179-e8a9-4b1d-ae2c-9f346e7b6d7d",
"resource_uri": "/v1/Account/{auth_id}/Message/2a340179-e8a9-4b1d-ae2c-9f346e7b6d7d/",
"to_number": "19352326448",
"total_amount": "0.00000",
"total_rate": "0.00350",
"units": 1
}
pricing_res = {
"api_id": "25b3d816-1c9f-11e4-bd8a-12313f016a39",
"country": "United States",
"country_code": 1,
"country_iso": "US",
"message": {
"inbound": {
"rate": "0.00000"
},
"outbound": {
"rate": "0.00650"
},
"outbound_networks_list": [
{
"group_name": "US",
"rate": "0.00650"
},
{
"group_name": "US",
"rate": "0.00650"
}
]
},
"phone_numbers": {
"local": {
"rate": "0.80000"
},
"tollfree": {
"rate": "1.00000"
}
},
"voice": {
"inbound": {
"ip": {
"rate": "0.00300"
},
"local": {
"rate": "0.00850"
},
"tollfree": {
"rate": "0.02100"
}
},
"outbound": {
"ip": {
"rate": "0.00300"
},
"local": {
"rate": "0.01200"
},
"rates": [
{
"prefix": [
"1"
],
"rate": "0.01200"
},
{
"prefix": [
"1340"
],
"rate": "0.02400"
},
{
"prefix": [
"1808"
],
"rate": "0.03400"
},
{
"prefix": [
"1907"
],
"rate": "0.17900"
},
{
"prefix": [
"1900"
],
"rate": "0.60300"
}
],
"tollfree": {
"rate": "0.00300"
}
}
}
}