Class: Mogreet::User
- Inherits:
-
Object
- Object
- Mogreet::User
- Defined in:
- lib/mogreet/user.rb
Instance Method Summary collapse
-
#getopt(options) ⇒ Object
number campaign_id.
- #info(options) ⇒ Object
-
#initialize(client) ⇒ User
constructor
A new instance of User.
- #lookup(options) ⇒ Object
-
#transactions(options) ⇒ Object
Name Description client_id Your client id.
- #uncache(options) ⇒ Object
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() @client.get_request('/moms/user.getopt', ) end |
#info(options) ⇒ Object
22 23 24 |
# File 'lib/mogreet/user.rb', line 22 def info() @client.get_request('/moms/user.info', ) end |
#lookup(options) ⇒ Object
7 8 9 |
# File 'lib/mogreet/user.rb', line 7 def lookup() @client.get_request('/moms/user.lookup', ) 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() @client.get_request('/moms/user.transactions', ) end |
#uncache(options) ⇒ Object
26 27 28 |
# File 'lib/mogreet/user.rb', line 26 def uncache() @client.get_request('/moms/user.uncache', ) end |