Skip to content

Instantly share code, notes, and snippets.

View satyatechsavy's full-sized avatar

Satya kalluri satyatechsavy

View GitHub Profile
require 'httparty'
class ItunesVerification
include HTTParty
base_uri 'https://sandbox.itunes.apple.com'
default_params :output => 'json'
format :json
def self.verify_apple_receipt(apple_receipt)
post('/verifyReceipt', :body=>{'receipt-data' => apple_receipt})
@satyatechsavy
satyatechsavy / windows8_notification.rb
Created April 5, 2012 05:29
Notification to Windows8
require 'windows8_system'
require 'fetch_windows8_access_token'
require 'net/http'
require 'net/https'
class Windows8Notification < Windows8System
def self.process(device_uri,message)
puts "iha"
device_uri = "https://db3.notify.windows.com/?token=AgUAAAADoGlaM0THo74Q%2bJP7MkgBEJzYC7OyTwh59QmECe9MgwfwGSWLsMhkG%2bHF3JI3q3gySjc3keErqcwWYCN9Qwi2z7TdCMnYGb30huMkKrzB54%2fH73vxrYzp36SQScHazJA%3d"