⭐️ Add to favorite
Add an item to favorites list. Only 'event’, 'exhibitor', 'brand' or 'product' are acceptable itemType
Description
ENDPOINT | DESCRIPTION | METHOD | EXEMPLE |
---|---|---|---|
/_plugin/Comexposium/mySelection/add | Payload to add an item to favorites | POST | https://api.preprod.comexposium-sso.com/_login |
Body
{
"itemId": "140260",
"itemType": "exhibitor",
"sessionSalon": "foire_de_paris_13969",
"language": "eng-GB|fre-FR",
"itemName": "Nom de l'exposant (optional)",
"link": "http://path.to.webpage/of/exhibitor (optional)",
"imgUri": "http://path.to.picture (optional)",
"catalogId": "15809 (optional)"
}
Call Exemple
curl -X POST "https://api.preprod.comexposium-sso.com/_plugin/Comexposium/mySelection/add" -H "accept: application/json" -H "Authorization: Bearer myBearerToken" -H "content-type: application/json" -d "{ \"itemId\": \"140260\", \"itemType\": \"exhibitor\", \"sessionSalon\": \"foire_de_paris_13969\", \"language\": \"eng-GB|fre-FR\", \"itemName\": \"Nom de l'exposant (optional)\", \"link\": \"http://path.to.webpage/of/exhibitor (optional)\", \"imgUri\": \"http://path.to.picture (optional)\", \"catalogId\": \"15809 (optional)\"}"
Details
Responses
You can only get a 200 or 401 status code by using this endpoint, you will find results in the statusCode attribute .
Success
statusCode: 0, message: generic_success
Exemple:
{
"requestId": "481bc7c9-9345-4709-961f-89a2b5316c12",
"status": 200,
"error": null,
"controller": "Comexposium/MySelectionController",
"action": "addItemMySelection",
"collection": null,
"index": null,
"volatile": null,
"result": {
"statusCode": 0,
"message": "generic_success",
"data": {
"count": 11,
"itemInformations": {
"itemRefId": "140260",
"itemType": "exhibitor",
"name": "Nom de l'exposant (optional)",
"link": "https://link.com",
"imgUri": "https://imglink.com/myimg.png"
}
}
}
}
Errors
statusCode: 15 || 37 Internal error
statusCode: 16: Wrong JWT token
statusCode: 17: itemID already in the selection
statusCode: 26: Missing credentials
statusCode: 197: Wrong itemType
Exemple:
{
"requestId": "0782e58e-d307-4ead-b40c-47f9c36b64a3",
"status": 200,
"error": null,
"controller": "Comexposium/MySelectionController",
"action": "addItemMySelection",
"collection": null,
"index": null,
"volatile": null,
"result": {
"statusCode": 15,
"message": "generic_error"
}
}