Class: Access::Api

Inherits:
Request show all
Defined in:
lib/access/api.rb

Instance Method Summary collapse

Methods inherited from Request

#get

Instance Method Details

#autocomplete(options = {}) ⇒ Object

auto complete



38
39
40
# File 'lib/access/api.rb', line 38

def autocomplete(options = {})
  get("/autocomplete", "offer", options)
end

#find_category(category_id, options = {}) ⇒ Object



9
10
11
# File 'lib/access/api.rb', line 9

def find_category(category_id, options = {})
  get("/categories/#{category_id}", "offer", options)
end

#find_location(location_id, options = {}) ⇒ Object



25
26
27
# File 'lib/access/api.rb', line 25

def find_location(location_id, options = {})
  get("/locations/#{location_id}", "offer", options)
end

#find_offer(offer_id, options = {}) ⇒ Object



17
18
19
# File 'lib/access/api.rb', line 17

def find_offer(offer_id, options = {})
  get("/offers/#{offer_id}", "offer", options)
end

#find_store(store_id, options = {}) ⇒ Object



33
34
35
# File 'lib/access/api.rb', line 33

def find_store(store_id, options = {})
  get("/stores/#{store_id}", "offer", options)
end

#redeem_offer(offer_key, redeem_type = nil, options = {}) ⇒ Object

redeem



56
57
58
# File 'lib/access/api.rb', line 56

def redeem_offer(offer_key, redeem_type = nil, options = {})
  get("/redeem/#{offer_key}/#{redeem_type}", "redeem", options)
end

#search_categories(options = {}) ⇒ Object

offer



5
6
7
# File 'lib/access/api.rb', line 5

def search_categories(options = {})
  get("/categories", "offer", options)
end

#search_locations(options = {}) ⇒ Object



21
22
23
# File 'lib/access/api.rb', line 21

def search_locations(options={})
  get("/locations", "offer", options)
end

#search_offers(options = {}) ⇒ Object



13
14
15
# File 'lib/access/api.rb', line 13

def search_offers(options={})
  get("/offers", "offer", options)
end

#search_stores(options = {}) ⇒ Object



29
30
31
# File 'lib/access/api.rb', line 29

def search_stores(options={})
  get("/stores", "offer", options)
end

#usage(options = {}) ⇒ Object

report



61
62
63
# File 'lib/access/api.rb', line 61

def usage(options = {})
  get("/usage", "report", options)
end

#usage_other(token, options = {}) ⇒ Object



65
66
67
# File 'lib/access/api.rb', line 65

def usage_other(token, options = {})
  get("/usage/#{token}", "report", options)
end

#verify(options = {}) ⇒ Object

token



43
44
45
# File 'lib/access/api.rb', line 43

def verify(options = {})
  get("/verify", "token", options)
end

#verify_filter(options = {}) ⇒ Object



51
52
53
# File 'lib/access/api.rb', line 51

def verify_filter(options = {})
  get("/filter", "token", options)
end

#verify_other(token, options = {}) ⇒ Object



47
48
49
# File 'lib/access/api.rb', line 47

def verify_other(token, options = {})
  get("/verify/#{token}", "token", options)
end