Read a Product

Returns a JSON representation of a product.

Request

Parameters
Method GET
Base URL https://api.xively.com
API Endpoint /v2/products/PRODUCT_ID
Headers
X-ApiKey API_KEY_HERE
Body
JSON
XML
CSV
  • GET/v2/products/PRODUCT_ID

    This request does not require body data
    
  • XML format not available for this call
    
  • CSV format not available for this call
    

Response

Parameters
Status Code 200 OK
Headers
No Headers
Body
JSON
XML
CSV
  •  {  
        "product": {  
            "description": "this is a device on xively",  
            "name": "API Example",  
            "product_id": "h5wT2IlOMrd09r_qd1jm",  
            "secret": "836842cd3b57dce99afef7805c078a0821a88725",  
            "state": "deploy",  
            "devices_count": 1,  
            "activated_devices_count": 0,  
            "feed_defaults": {  
                "title": "Demo Unit",  
                "tags": [  
                    "device:type=API Example"  
                ],  
                "private": "true",  
                "datastreams": [  
                    {  
                        "id": "channel1"  
                    },  
                    {  
                        "id": "demo"  
                    }  
                ]  
            }  
        }  
    } 
    
  • XML format not available for this call
    
  • CSV format not available for this call