MAPI Manual

NAME

USERAPPS_SAVEDATA

FUNCTION

User app save a key-value data

SYNOPSIS

app_id, data_key, data_value

DESCRIPTION

The function allows users to save a key-value data. If the key exists, it'll update the data; otherwise, it'll create the data.

Required Parameters

* action: USERAPPS_SAVEDATA.

* app_id: the application ID. It specifies the application that the data is associated with.

* data_key: the key of the data.

* data_value: value of the data.

RETURN DATA

The response contains the following attribute:
* msg: indicates the data has been added or updated successfully.

ROLE PERMITTED

EXAMPLES

The following example shows a successful HTTP GET request and response.

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=USERAPPS_SAVEDATA&app_id=1&data_key=b&data_value=pear&login_name=name@example.com&login_passwd=1111


Response:

<result tftype='1' infotype='0'>
    <field name='msg'>SUCCESS</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

Mweb v2.0 YVNTECH 2014