Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎3 - Profile Store‎ > ‎

Get Profile

Method used to get profile data.  The lookup can occur by the userkey or by the querying (using the profile data item key/value pair).  It is common to query by key/value pair when looking up third party authentication such as by a facebook id.

Method: GET /api/v3/publisher/profilestore
Authentication: oauth
 
Parameters
Required QueryString Value
Explanation
No
DataKeyThe publisher defined data key for the profile data item, such as a "facebook_id"
No
DataValue The value to look for such as 4823781813.
No UserKeyThe user key of the profile

**At least either UserKey or DataKey/DataValue should be supplied.

Returns

base response fields
consumer - The consumer record listed in the Group Commerce system.
profile  - The profile object.

Sample Request:

GET https://api.groupcommerce.com/api/v3/publisher/profilestore?DataKey=facebook_id&DataValue=28947322331&

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

Sample JSON Response:

{
    "errors":[],
    "lastPublished":"/Date(1322498965427)/",
    "success":true,
    "version":"3",
    "consumer":{
        /* see consumer */
    },
    "profile":{
        /* see profile */
    }
}


Sample XML Response:

<getProfileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-11-28T16:50:18.5767148Z</lastPublished>
    <success>true</success>
    <version>3</version>
    <consumer>
        <!--
see consumer -->
    </consumer>
    <profile>
        <!--
see profile -->
    </profile>
</getProfileResponse>
Comments