# wx.setUserCloudStorage(Object object)

Start from base library version 1.9.92. Please remaining backward compatible.

Writes data to the user's hosted data. Multiple sets of KV data can be written at a time.

# Parameters

# Object object

Attribute Type Default Required Description
KVDataList Array.<KVData> Yes The list of KV data to be modified
success function No The callback function for a successful API call
fail function No Callback function for failed API call
complete function No Callback function used when API call completed (always executed whether call succeeds or fails)

# Limits on Hosted Data

  1. The WeChat users identified by the OpenIds cannot have hosted data in excess of 128 key-value pairs in each game.
  2. No item in the key-value list can have a key+value length in excess of 1024 bytes.
  3. No item in the key-value list can have a key length in excess of 128 bytes.