Ignore:
Timestamp:
2010-08-09T19:04:55Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
523fb23
Parents:
5fecede
Message:

Not working yet, but some code for fetching the membership list. Apparently
an upgrade to MSNP15 is needed. Oh well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.h

    r5fecede r7db65b7  
    4646"User-Agent: BitlBee " BITLBEE_VERSION "\r\n" \
    4747"Content-Type: text/xml; charset=utf-8\r\n" \
     48"Cookie: MSPAuth=%s\r\n" \
    4849"Content-Length: %d\r\n" \
    4950"Cache-Control: no-cache\r\n" \
     
    5354
    5455#define SOAP_OIM_SEND_URL "https://ows.messenger.msn.com/OimWS/oim.asmx"
    55 #define SOAP_OIM_ACTION_URL "http://messenger.msn.com/ws/2004/09/oim/Store"
     56#define SOAP_OIM_SEND_ACTION "http://messenger.msn.com/ws/2004/09/oim/Store"
    5657
    5758#define SOAP_OIM_SEND_PAYLOAD \
     
    8586int msn_soap_oim_send_queue( struct im_connection *ic, GSList **msgq );
    8687
     88
     89#define SOAP_MEMLIST_URL "https://byrdr.omega.contacts.msn.com/abservice/SharingService.asmx"
     90#define SOAP_MEMLIST_ACTION "http://www.msn.com/webservices/AddressBook/FindMembership"
     91
     92#define SOAP_MEMLIST_PAYLOAD \
     93"<?xml version=\"1.0\" encoding=\"utf-8\"?>" \
     94"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     95  "<soap:Header xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     96    "<ABApplicationHeader xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     97      "<ApplicationId xmlns=\"http://www.msn.com/webservices/AddressBook\">CFE80F9D-180F-4399-82AB-413F33A1FA11</ApplicationId>" \
     98      "<IsMigration xmlns=\"http://www.msn.com/webservices/AddressBook\">false</IsMigration>" \
     99      "<PartnerScenario xmlns=\"http://www.msn.com/webservices/AddressBook\">Initial</PartnerScenario>" \
     100    "</ABApplicationHeader>" \
     101    "<ABAuthHeader xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     102      "<ManagedGroupRequest xmlns=\"http://www.msn.com/webservices/AddressBook\">false</ManagedGroupRequest>" \
     103    "</ABAuthHeader>" \
     104  "</soap:Header>" \
     105  "<soap:Body xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     106    "<FindMembership xmlns=\"http://www.msn.com/webservices/AddressBook\"><serviceFilter xmlns=\"http://www.msn.com/webservices/AddressBook\"><Types xmlns=\"http://www.msn.com/webservices/AddressBook\"><ServiceType xmlns=\"http://www.msn.com/webservices/AddressBook\">Messenger</ServiceType><ServiceType xmlns=\"http://www.msn.com/webservices/AddressBook\">Invitation</ServiceType><ServiceType xmlns=\"http://www.msn.com/webservices/AddressBook\">SocialNetwork</ServiceType><ServiceType xmlns=\"http://www.msn.com/webservices/AddressBook\">Space</ServiceType><ServiceType xmlns=\"http://www.msn.com/webservices/AddressBook\">Profile</ServiceType></Types></serviceFilter>" \
     107    "</FindMembership>" \
     108  "</soap:Body>" \
     109"</soap:Envelope>"
     110
     111int msn_soap_memlist_request( struct im_connection *ic );
     112
     113
    87114#endif /* __SOAP_H__ */
Note: See TracChangeset for help on using the changeset viewer.