Created
January 22, 2015 22:45
-
-
Save martinnormark/f2ccbd85db1b633c8526 to your computer and use it in GitHub Desktop.
Query the Apple Push Notification Feedback service using Houston (Nomad-CLI)
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'houston' | |
certificate = 'cert.pem' | |
passphrase = '' | |
client = Houston::Client.production | |
client.certificate = File.read(@certificate) | |
client.passphrase = @passphrase | |
feedbackDevices = client.unregistered_devices | |
puts "Feedback exists for #{feedbackDevices.length} device(s)" | |
feedbackDevices.each do |device| | |
puts "{ token: #{device[:token]}, timestamp: #{device[:timestamp]} }" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment