class Gupshup::REST::UserEvents
Attributes
apikey[RW]
app[RW]
base_uri[RW]
content_type[RW]
headers[RW]
version[RW]
Public Class Methods
new(app, apikey, version = '2')
click to toggle source
Calls superclass method
Gupshup::REST::WhatsApp::new
# File lib/gupshup_whatsapp/rest/whatsapp/user-event/user-event.rb, line 9 def initialize(app, apikey, version = '2') super @headers = { 'apikey' => @apikey } end
Public Instance Methods
send()
click to toggle source
# File lib/gupshup_whatsapp/rest/whatsapp/user-event/user-event.rb, line 14 def send r = Gupshup::HTTP::Client.new r = r.request(host = base_uri, port = 443, method = 'GET', url = "/sm/api/v1/users/#{app}", headers = @headers) puts r.inspect r end