Created
October 24, 2014 16:59
-
-
Save roccogalluzzo/1994b52ac85f1572f329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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