Ignore:
Timestamp:
2010-08-14T13:06:11Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5848675
Parents:
d93c0eb9
Message:

Allow changing the display_name, now permanently!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.h

    rd93c0eb9 r4452e69  
    220220"</soap:Envelope>"
    221221
     222#define SOAP_AB_NAMECHANGE_ACTION "http://www.msn.com/webservices/AddressBook/ABContactUpdate"
     223
     224#define SOAP_AB_NAMECHANGE_PAYLOAD \
     225"<?xml version=\"1.0\" encoding=\"utf-8\"?>" \
     226"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">" \
     227  "<soap:Header>" \
     228    "<ABApplicationHeader xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     229      "<ApplicationId>CFE80F9D-180F-4399-82AB-413F33A1FA11</ApplicationId>" \
     230      "<IsMigration>false</IsMigration>" \
     231      "<PartnerScenario>Initial</PartnerScenario>" \
     232    "</ABApplicationHeader>" \
     233    "<ABAuthHeader xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     234      "<ManagedGroupRequest>false</ManagedGroupRequest>" \
     235      "<TicketToken>%s</TicketToken>" \
     236    "</ABAuthHeader>" \
     237  "</soap:Header>" \
     238    "<soap:Body>" \
     239        "<ABContactUpdate xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     240            "<abId>00000000-0000-0000-0000-000000000000</abId>" \
     241            "<contacts>" \
     242                "<Contact xmlns=\"http://www.msn.com/webservices/AddressBook\">" \
     243                    "<contactInfo>" \
     244                        "<contactType>Me</contactType>" \
     245                        "<displayName>%s</displayName>" \
     246                    "</contactInfo>" \
     247                    "<propertiesChanged>DisplayName</propertiesChanged>" \
     248                "</Contact>" \
     249            "</contacts>" \
     250        "</ABContactUpdate>" \
     251    "</soap:Body>" \
     252"</soap:Envelope>"
     253
    222254int msn_soap_addressbook_request( struct im_connection *ic );
     255int msn_soap_addressbook_set_display_name( struct im_connection *ic, const char *new );
    223256
    224257
Note: See TracChangeset for help on using the changeset viewer.