Bunchball Developer Wiki

 

user_setPreferences

Page history last edited by Anupam Singhal 3 months, 2 weeks ago

user.setPreferences

Sets multiple user preference. If the specified user doesn't exist, it is created.

Note: The name and value can be at most 128 characters each.

 

Arguments

Name

Required

Comments

method

Y

user.setPreferences

sessionKey

Y

from user.login

userId

Y

user to set preference for

names

Y

"|"-separated preference names. Must be at most 128 characters

values

Y

"|"-separated preference values. Must be at most 128 characters. The number of entries here should match the number of entries in "names".

 

Sample Request

method=user.setPreferences&sessionKey=1b5c0a9dac2345&userId=jack&names=testPref1|testPref2&value=testValue1|testValue2

 

Sample Response

<Nitro xmlns="com/nitro/base/castor">
   <userPreferences>
      <UserPreference name="testPref1" value="testValue1"/>
      <UserPreference name="testPref2" value="testValue2"/>
   </userPreferences>
</Nitro>
 

 

Comments (0)

You don't have permission to comment on this page.