Re: [Wikitech-l] New API options problem

2013-10-10 Thread Andre Klapper
Hi Aran, On Wed, 2013-10-09 at 16:53 -0300, Aran wrote: I'm trying to set a user's realname option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token. I get

Re: [Wikitech-l] New API options problem

2013-10-10 Thread Aran
My command was: action = 'options', token = $token, format = 'xml', change = 'realname=Foo Bar' Which resulted in success but did nothing. On 10/10/13 06:22, Andre Klapper wrote: Hi Aran, On Wed, 2013-10-09 at 16:53 -0300, Aran wrote: I'm trying to set a user's realname

Re: [Wikitech-l] New API options problem

2013-10-10 Thread Brad Jorsch (Anomie)
The real name isn't actually an option, it's a field in the user table. Special:Preferences handles it specially. Your API command does correctly set a realname option, and it can be fetched using api.php?format=jsonfmaction=querymeta=userinfouiprop=options, but as you've noted that doesn't

Re: [Wikitech-l] New API options problem

2013-10-10 Thread Brad Jorsch (Anomie)
On Thu, Oct 10, 2013 at 11:13 AM, Aran a...@organicdesign.co.nz wrote: I see, so is there any way to update user preferences such as real name and password via the API or has that not yet been implemented? There is no way to do it at this time. -- Brad Jorsch (Anomie) Software Engineer

Re: [Wikitech-l] New API options problem

2013-10-10 Thread Tyler Romeo
This should probably be filed as a bug if it isn't already. -- Tyler Romeo On Oct 10, 2013 12:17 PM, Brad Jorsch (Anomie) bjor...@wikimedia.org wrote: On Thu, Oct 10, 2013 at 11:13 AM, Aran a...@organicdesign.co.nz wrote: I see, so is there any way to update user preferences such as real

Re: [Wikitech-l] New API options problem

2013-10-10 Thread Bartosz DziewoƄski
Brad submitted a patch: https://gerrit.wikimedia.org/r/#/c/88995/ -- Matma Rex ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] New API options problem

2013-10-10 Thread Daniel Friesen
On 2013-10-10 9:17 AM, Brad Jorsch (Anomie) wrote: On Thu, Oct 10, 2013 at 11:13 AM, Aran a...@organicdesign.co.nz wrote: I see, so is there any way to update user preferences such as real name and password via the API or has that not yet been implemented? There is no way to do it at this

[Wikitech-l] New API options problem

2013-10-09 Thread Aran
Hi, I'm trying to set a user's realname option on a local wiki (1.21.1) using the API. I can login successfully, confirm my login token fine and then I can get the options token and make the call to change options using the token. I get Success returned when I change the realname (or any other