lib/access/api.rb in access-2.0.53 vs lib/access/api.rb in access-2.0.54

- old
+ new

@@ -416,9 +416,28 @@ request.get('/cart/count', 'shoppingcart', options) do |response| ShoppingCartResponse.new(response) end end + # AMT + + def import_members(members, options = {}) + request.post('/imports', 'amt', options.merge({import: {members: members}})) do |response| + AmtResponse.new(response) + end + end + + def list_imports(options = {}) + request.get('/imports', 'amt', options) do |response| + AmtResponse.new(response) + end + end + + def show_import(import_key, options = {}) + request.get("/imports/#{import_key}", 'amt', options) do |response| + AmtResponse.new(response) + end + end private def request Access::Request.new