How does one actually use the filters?
Can someone post an example of some code which sets the header for how to utilize the filters? I can't make sense of what the docs are asking me to do.
Setting it as an http header doesn't seem to work.
Mind you I'm using PHP for my testing and here's the code:
$url = "https://cumulus.services.live.com/" . $ownerhandle . "/LiveContacts";
$header = array("Authorization: DomainAuthToken at=\"" . $authtoken . "\"",
"com.microsoft.external.contacts.Filter=MessengerClient");
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
Am I doing this wrong in trying to put the filter in the HTTP header? I sniffed the HTTP packets and the filter isn't even in the header (my guess is PHP/Curl doesn't like the format or what I'm trying to do)
[1266 byte] By [
SimonTam] at [2008-2-28]
Hi, Simon:
The "filter" feature was unfortunately cut down at the last moment before Alpha release. We intend to reintroduce it in our next release.
If you are sniffing HTTP packets and finding that the header is not being sent, it could very well be that the curl library refuses to send this header. Unfortunately I am not familiar with the library and cannot help you with that.
Bill
Oleg, have a look at this article here: http://www.vsj.co.uk/articles/display.asp?id=654. All in all there are three methods of authentication: Domain Authentication, Mutual SSL Authentication and RPS (Relying Party Suite) Authentication. First one is not working at the moment, as the service, which is in alpha version, is "temporarily unavailable", second requires special SSL certificate. I have successfully retrieved the auth.token using RPS method, which involves SOAP.