Skip to content

Instantly share code, notes, and snippets.

@roccogalluzzo
Created October 24, 2014 16:59
Show Gist options
  • Save roccogalluzzo/1994b52ac85f1572f329 to your computer and use it in GitHub Desktop.
Save roccogalluzzo/1994b52ac85f1572f329 to your computer and use it in GitHub Desktop.
# old
def get(path, opts={}, &block) # :nodoc:
request(:get, path, opts, &block)
end
def recipients(params = {})
@api.get("#{@api.path}/Message/#{@id}/List/Recipients", params: params)
end
def views(params = {})
@api.get("#{@api.path}/Message/#{@id}/List/Views", params: params)
end
# new
def get(path, opts={}, &block)
request(:get,"#{@api.path}/#{path}", opts, &block)
end
def recipients(params = {})
@api.get("Message/#{@id}/List/Recipients", params: params)
end
def views(params = {})
@api.get("Message/#{@id}/List/Views", params: params)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment