Class: Mogreet::User

Inherits:
Object
  • Object
show all
Defined in:
lib/mogreet/user.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ User

Returns a new instance of User.



3
4
5
# File 'lib/mogreet/user.rb', line 3

def initialize(client)
  @client = client
end

Instance Method Details

#getopt(options) ⇒ Object

number campaign_id



32
33
34
# File 'lib/mogreet/user.rb', line 32

def getopt(options)
  @client.get_request('/moms/user.getopt', options)      
end

#info(options) ⇒ Object



22
23
24
# File 'lib/mogreet/user.rb', line 22

def info(options)
  @client.get_request('/moms/user.info', options)      
end

#lookup(options) ⇒ Object



7
8
9
# File 'lib/mogreet/user.rb', line 7

def lookup(options)
  @client.get_request('/moms/user.lookup', options)      
end

#transactions(options) ⇒ Object

Name Description client_id Your client id. Log onto the Campaign Manager to access your client id. token Your token. Log onto the Campaign Manager to access your token. number A mobile number (MSISDN). campaign_id A campaign id to search on. (Optional - if excluded, returns all opt in statuses for the client’s campaigns)

start_date (Optional) Narrow search by adding a date to start searching on [YYYY-MM-DD] end_date (Optional) Narrow search by adding a date to stop searching on [YYYY-MM-DD]



18
19
20
# File 'lib/mogreet/user.rb', line 18

def transactions(options)
  @client.get_request('/moms/user.transactions', options)      
end

#uncache(options) ⇒ Object



26
27
28
# File 'lib/mogreet/user.rb', line 26

def uncache(options)
  @client.get_request('/moms/user.uncache', options)      
end