Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎2 - Consumer Related‎ > ‎

Get Consumer

Returns information about a specific consumer identified by the provided user key.

Method: GET /api/v3/publisher/consumer/{userKey}
Authentication: oauth

Parameters
  userKey - the userkey of the consumer.
 
Returns

  base response fields
  consumer - Will return the consumer object.

Sample Request:

GET https://api.groupcommerce.com/api/v3/publisher/consumer/3c651ac9e6054d72b9b938f782790c8c?format=xml

Authorization: OAuth oauth_signature="6gdC79QhPJw%2fliPdaloVCb9lyEE%3d", oauth_nonce="1845820", oauth_timestamp="1322124820", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"

Sample JSON Response:

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


Sample XML Response:

<getConsumerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-11-24T08:54:49.8349473Z</lastPublished>
    <success>true</success>
    <version>3</version>
    <consumer>
        <!--
see consumer -->
    </consumer>
</getConsumerResponse>
Comments