Virtual Organisation:Update Profile

From VZ Developer Wiki
Revision as of 08:08, 12 August 2010 by Ckloeppner (talk | contribs)
Jump to: navigation, search

Inhaltsverzeichnis, API-Methoden, Schritt für Schritt


Update profile

  • Zusammenfassung: Existierendes Profil aktualisieren
    • Es müssen nur die Parameter angegeben werden, die geändert werden sollen.
  • Plattform-IDs: (1=studiVZ/meinVZ, 2=schuelerVZ)
  • HTTP Methode: POST
  • Header: content-type: application/x-www-form-urlencoded
  • POST message:
   {
       "general":
       {
           "firstName" : "Maxi",
           "lastName" : "Mustermännchen",
           "email" : "new@email.de",
           "birthday":"2010-08-05"
       },
       "category":
       {
           "primaryCategory" : "3",
           "secondaryCategories" : ["212", "242", "536", "541"]    (empty string deletes categories)
       },
       "content": 
       {
           "frontsideContent" : "<p>newText new {{vz.tinymce}}Text newText newText newText;/p>",
           "flipsideContent" : "<p>newText newText newText newText newText;/p>"}
       },
       "images":
       {
           "profileImages":
           {
               "small":"<base64 encoded string>",
               "medium":"<base64 encoded string>",
               "big":"<base64 encoded string>" 
           }
       }
   }
  • Response: Statusmeldung
   {
       "meta":
       {
           "version":1, 
           "nonce":"", 
           "count":1, 
           "success":true
       }, 
       "content":"profile successfully updated"
   }

Inhaltsverzeichnis, API-Methoden, Schritt für Schritt