Windows Live oAuth wrap for contacts?
I would like to know if the oAuth wrap authentication facility by windows live is just for messenger connect or what? Can it be used for Live Contacts API? I am trying to fetch addressbook from live contacts. How can i do that? Microsoft's msdn documentation on various APIs sucks to the core!! Th开发者_Go百科ey doesnt even have any specific working PHP example for this. Can somebody redirect me to the well organized documentation/tutorial on this?
Not sure if you've figured this out yet, but I am looking into it as well. I don't have a working sample yet, but the answer is YES, OAuth WRAP can be used for the Live Contacts API as well as any other Messenger Connect APIs. It's actually fairly straightforward if you've used OAuth before. You would obtain authorization as with any other provider (eg. Facebook, LinkedIn, Google, etc.), and then obtain an access token:
http://msdn.microsoft.com/en-us/library/ff750952.aspx
You would then pass that access token in the Authorization header (curl_setopt
, CURLOPT_HTTP_HEADER
) and continue with the REST call as if you had authorized using the Live SDK.
精彩评论