Welcome‎ > ‎Version 2‎ > ‎Publisher Api (Read/Write)‎ > ‎Methods‎ > ‎3 - Consumer‎ > ‎

Get Consumer

This method will retrieve consumer information from the system.  This is separate from ProfileStore functionality.

Method: GET /api/v2/publisher/consumer/{userKey}
Authentication: oauth
 
Returns
success - Consumer object containing information about the consumer.
errors - Contains error message when success = false


Sample Request:

GET /api/v2/publisher/consumer/5509477

Authorization: OAuth oauth_signature="taiPJ05sD7HOdRgOarWiWCh%2b2iQ%3d", oauth_nonce="8508098", oauth_timestamp="1318547140", oauth_consumer_key="43c5c674-620c-4f2b-bdcf-3082c99e8186", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"


Sample JSON Response:

{
    "errors":[],
    "lastPublished":"/Date(1318547178605)/",
    "success":true,
    "version":"2",
    "data":{
        "credits":0,
        "email":"nblumenthal@groupcommerce.com",
        "firstName":"noah",
        "lastName":"blumenthal"
    }
}


Sample XML Response:

<consumerResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-10-13T23:11:49.6447151Z</lastPublished>
    <success>true</success>
    <version>2</version>
    <data>
        <credits>0</credits>
        <email>nblumenthal@groupcommerce.com</email>
        <firstName>noah</firstName>
        <lastName>blumenthal</lastName>
    </data>
</consumerResult>
Comments