-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtexveloper.rb
More file actions
39 lines (30 loc) · 833 Bytes
/
Copy pathtexveloper.rb
File metadata and controls
39 lines (30 loc) · 833 Bytes
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
require 'httparty'
class Textveloper
include HTTParty
base_uri 'http://api.textveloper.com/'
def enviar(mensaje)
options = {body: mensaje}
self.class.post('/enviar/', options)
end
def puntos_cuenta(mensaje)
options = {body: mensaje}
self.class.post('/saldo-cuenta/', options)
end
def puntos_app(mensaje)
options = {body: mensaje}
self.class.post('/saldo-subcuenta/', options)
end
def historial_sub(mensaje)
options = {body: mensaje}
self.class.post('/historial-transferencias/', options)
end
def historial_compras(mensaje)
options = {body: mensaje}
self.class.post('/historial-compras/', options)
end
def historial_sms_enviados(mensaje)
options = {body: mensaje}
self.class.post('/historial-envios/', options)
end
end
textveloper = Textveloper.new