Jump to content
MediaWiki

API:Edit - Set user preferences/ca

From mediawiki.org
This page is a translated version of the page API:Edit - Set user preferences and the translation is 22% complete.
This page is part of the MediaWiki Action API documentation.
MediaWiki Action API
Basics
Autenticació
Accounts and Users
Page Operations
Search
Developer Utilities
Tutorials
v · d · e
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date.

This is an old proposal. There is no action=setuserpreferences implemented. See action=options instead.

SetUserPreferences

SetUserPreferences action allows to edit each user profile by passing any profile parameters which are desired to be changed such as name, email, newpassword. As shown in other features, sensible parameters must be passed by POST form.

Sample request and response:

Petició:
 api.php ? action=setuserpreferences 
Post parameters:
 pruserid = 23		 Obtained when the user has logged in.
 prusertoken = ber0cd5aa1bda4a5ve7lez230570b00na1a Obtained when the user has been logged
 [ proldpassword = 123abc ]		 Old password the user used to have 
 [ prnewpassword = 123abc ]		 New password desired by the user 
 [ prretypepassword = 123abc ]		 Retyping the new desired password is required 
 [ prname = "John" ]	 User Name. It is not a mandatory field
 [ premail = john.smith@yahoo.com ]	 User email address
 [ prnickname = "Johnny" ]		 User signature
 [ ccmeonemail = yes/no ]		 To send me copies of emails sent to other users
 [ premailflag = yes/no ]		 Enable email from other users
 
Resposta:
api:
 userpreferences:
 result: Success		 Other values: UserIsAnon, WrongPassword, BadRetype, WrongEmailAddress

.

AltStyle によって変換されたページ (->オリジナル) /