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

Get Application Data

Will get application data from the data store by key or by group name.  Provide either a key or a group name but not both.

Method: GET /api/v3/publisher/applicationDataStore
Authentication: oauth
 
Parameters
Required QueryString Value
Explanation
No
GroupName
The name of the group of data to return.
No
Key The key of the data member to return.

Returns
base response fields
applicationData - Will return a list of application data items.

Sample Request:

-- request to get a data item by key
GET http://api.groupcommerce.com/api/v3/publisher/applicationDataStore?key=FacebookId

-- request to get a data item by group name
GET http://api.groupcommerce.com/api/v3/publisher/applicationDataStore?groupName=SETTINGS

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

Sample JSON Response:

{
    "errors": [],
    "lastPublished": "/Date(1328139372256)/",
    "success": true,
    "version": "3",
    "applicationData": [
        {
            // see application data item
        },
        {
            // see application data item
        }
    ]
}


Sample XML Response:

<getApplicationDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errors />
  <lastPublished>2012-02-01T23:37:30.520781Z</lastPublished>
  <success>true</success>
  <version>3</version>
  <applicationData>
    <applicationDataItem>
      <!--
see application data item -->
    </applicationDataItem>
    <applicationDataItem>
      <!--
see application data item -->
    </applicationDataItem>
  </applicationData>
</getApplicationDataResponse>
Comments