lib/urbanairship.rb in urbanairship-2.2.2 vs lib/urbanairship.rb in urbanairship-2.2.3
- old
+ new
@@ -74,18 +74,22 @@
def remove_tag(tag)
do_request(:delete, "/api/tags/#{tag}", :authenticate_with => :master_secret)
end
def tags_for_device(device_token)
- do_request(:get, "/api/device_tokens/#{device_token}/tags", :authenticate_with => :master_secret)
+ do_request(:get, "/api/device_tokens/#{device_token}/tags/", :authenticate_with => :master_secret)
end
def tag_device(params)
do_request(:put, "/api/device_tokens/#{params[:device_token]}/tags/#{params[:tag]}", :authenticate_with => :master_secret)
end
def untag_device(params)
do_request(:delete, "/api/device_tokens/#{params[:device_token]}/tags/#{params[:tag]}", :authenticate_with => :master_secret)
+ end
+
+ def device_tokens_count
+ do_request(:get, "/api/device_tokens/count/", :authenticate_with => :master_secret)
end
private
def do_request(http_method, path, options = {})