GET /compare/shared/:token

GET /compare/shared/{token}

Returns a shared product comparison

Path parameters

  • token string(uuid) Required

    token reference to desired resource

Responses

GET /compare/shared/{token}
curl \
 -X GET https://api.cosmily.com/api/v1/compare/shared/{token} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "left_product": {
      "id": 42,
      "alias": "string"
    },
    "right_product": {
      "id": 42,
      "alias": "string"
    },
    "share_token": "string"
  },
  "links": {
    "left_product": "string",
    "right_product": "string",
    "left_analysis": "string",
    "right_analysis": "string"
  }
}
Response examples (200)
{
  "data": {
    "left_product": {
      "id": 42,
      "alias": "string"
    },
    "right_product": {
      "id": 42,
      "alias": "string"
    },
    "share_token": "string"
  },
  "links": {
    "left_product": "string",
    "right_product": "string",
    "left_analysis": "string",
    "right_analysis": "string"
  }
}