lib/contacts/windows_live.rb
# This method access the Windows Live Contacts API Web Service to get
# the XML contacts document
#
This method access the Windows Live Contacts API Web Service to get
the XML contacts document
This method access the Windows Live Contacts API Web Service to get the XML contacts document
def access_live_contacts_api
      http = http = Net::HTTP.new('livecontacts.services.live.com', 443)
      http.use_ssl = true
      response = nil
      http.start do |http|
         request = Net::HTTP::Get.new("/users/@L@#{@consent_token.locationid}/rest/invitationsbyemail", {"Authorization" => "DelegatedToken dt=\"#{@consent_token.delegationtoken}\""})
         response = http.request(request)
      end
      return response.body
    end
def access_live_contacts_api http = http = Net :: HTTP . new ( 'livecontacts.services.live.com' , 443 ) http . use_ssl = true response = nil http . start do | http | request = Net :: HTTP :: Get . new ( "/users/@L@#{@consent_token.locationid}/rest/invitationsbyemail" , { "Authorization" => "DelegatedToken dt=\"#{@consent_token.delegationtoken}\"" } ) response = http . request ( request ) end return response . body end
This method access the Windows Live Contacts API Web Service to get
the XML contacts document
This method access the Windows Live Contacts API Web Service to get the XML contacts document