Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎5 - Application Data‎ > ‎

Save Application Data

Saves data in the key value store.

Method: PUT /api/v3/publisher/applicationDataStore

Authentication: oauth
 
Post
Required Form Name Data Type Explanation
No
ApplicationData list A list of Application Data Items (see below)

Application Data Item
Required Form Name Data Type Explanation
No
GroupName string The name of the group for the data (useful for getting all data members in a group in one get request)
Yes
Key
string
The unique key for the data
No
Value
string
 The data value

Returns
success - Whether or not the application data was successfully saved.


Sample Request:

PUT  http://api.groupcommerce.com/api/v3/publisher/applicationDataStore

Form: ApplicationData%5b0%5d.Key=Layout&ApplicationData%5b0%5d.Value=3Col&ApplicationData%5b0%5d.GroupName=SETTINGS&ApplicationData%5b1%5d.Key=DefaultSegment&ApplicationData%5b1%5d.Value=Benbrook&ApplicationData%5b1%5d.GroupName=SETTINGS&ApplicationData%5b2%5d.Key=FacebookId&ApplicationData%5b2%5d.Value=8368790228

Authorization: OAuth oauth_signature="TjxFxHsiYyg5R4kflf9EIJ0DAU8%3d", oauth_nonce="2324583", oauth_timestamp="1328137967", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"


Sample JSON Response:

{
    "errors": [],
    "lastPublished": "\/Date(1328138757830)\/",
    "success": true,
    "version": "3"
}


Sample XML Response:

<saveApplicationDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errors />
  <lastPublished>2012-02-01T23:12:47.1739401Z</lastPublished>
  <success>true</success>
  <version>3</version>
</saveApplicationDataResponse>
Comments