Difference between revisions of "Virtual Organisation:Update Profile"

From VZ Developer Wiki
Jump to: navigation, search
Line 54: Line 54:
 
             "success":true
 
             "success":true
 
         },  
 
         },  
         "content":"profile successfully updated"
+
         "content":"profile {guid} successfully updated"
 
     }
 
     }
 
----
 
----
 
[[Virtual_Organisation:API_Documentation|Inhaltsverzeichnis]], [[Virtual_Organisation:REST_API_Methods|API-Methoden]], [[Virtual_Organisation:How_to|Schritt für Schritt]]
 
[[Virtual_Organisation:API_Documentation|Inhaltsverzeichnis]], [[Virtual_Organisation:REST_API_Methods|API-Methoden]], [[Virtual_Organisation:How_to|Schritt für Schritt]]

Revision as of 08:08, 12 August 2010

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 {guid} successfully updated"
   }

Inhaltsverzeichnis, API-Methoden, Schritt für Schritt