Hello,
https😕/communaute.orange.fr recently started using a new text editor allowing the use of emojis
The API V1 posts/recent endpoint cannot return the body of messages containing emojis
curl -X POST <a href="https😕/communaute.orange.fr/restapi/vc/posts/recent" target="_blank">https😕/communaute.orange.fr/restapi/vc/posts/recent</a> -H 'cache-control: no-cache' -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' -H 'postman-token: 74a3c296-997d-93c6-5db1-456462183ace' -F page=1 -F page_size=10 -F restapi.response_format=json -F 'restapi.response_style=-types,-null' -F restapi.format_detail=full_list_element
You can try using this command, there will most likely be a link with https😕/ being interpreted as 😕 emoji, hence no body in the response.
It works fine with API V2
Reproducted with this message, when I did
curl -X POST <a href="https😕/community.khoros.com/restapi/vc/posts/recent" target="_blank">https😕/community.khoros.com/restapi/vc/posts/recent</a> -H 'cache-control: no-cache' -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' -H 'postman-token: 74a3c296-997d-93c6-5db1-456462183ace' -F page=1 -F page_size=1 -F restapi.response_format=json -F 'restapi.response_style=-types,-null' -F restapi.format_detail=full_list_element
just after posting this message, I got
{
"response": {
"status": "success",
"messages": {
"message": [
{
"href": "/messages/id/517351",
"root": {
"href": "/messages/id/517351"
},
"canonical_url": null,
"parent": null,
"message_status": {
"href": "/message_statuses/id/1",
"name": "Unspecified",
"key": "unspecified"
},
"post_time": "2019-03-19T14:55:28+00:00",
"last_edit_time": "2019-03-19T14:55:28+00:00",
"board_id": 6954,
"views": {
"count": 0
},
"message_rating": 0.0,
"last_edit_author": {
"href": "/users/id/82919",
"login": "RCIntegrator"
},
"kudos": {
"count": 0
},
"labels": {
"label": []
},
"seo_title": null,
"seo_description": null,
"thread": {
"href": "/threads/id/517351"
},
"teaser": "",
"board": {
"href": "/boards/id/technology"
},
"subject": "API V1 can't return body containing emojis",
"id": 517351,
"read_only": false,
"deleted": false,
"author": {
"href": "/users/id/82919",
"login": "RCIntegrator"
}
}
]
}
}
}
Edit:
Also reproducted with V1 /messages/id endpoint
curl -X POST <a href="https/community.khoros.com/restapi/vc/messages/id/517351" target="_blank">https/community.khoros.com/restapi/vc/messages/id/517351</a> -H 'cache-control: no-cache' -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' -H 'postman-token: 74a3c296-997d-93c6-5db1-456462183ace' -F page=1 -F page_size=1 -F restapi.response_format=json -F 'restapi.response_style=-types,-null' -F restapi.format_detail=full_list_element
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!