Difference between revisions of "Virtual Organisation:Update Profile"
From VZ Developer Wiki
Sdobrowolny (talk | contribs) (→Update profile) |
Ckloeppner (talk | contribs) |
||
Line 44: | Line 44: | ||
} | } | ||
− | *Response: | + | *Response: Statusmeldung |
{ | { |
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)
- URL: https://secure.studivz.net/Api/Vo/V1/?action=profile&guid={guid}&platform={platformId}&token={token}
- 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" }