Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens if I populate both the text and html fields of a timeline item?

Both text and html fields of a timeline item render the content of a timeline card. What happens if I populate both timelineItem.text and timelineItem.html fields?

e.g.

POST /mirror/v1/timeline HTTP/1.1
Host: www.googleapis.com
Authorization: Bearer {auth token}
Content-Type: application/json
Content-Length: 26

{ "text": "Hello world",
"html": "I am a kitty" }
like image 481
J Wang Avatar asked Mar 23 '23 12:03

J Wang


1 Answers

Your value for timelineItem.html will trump the value supplied for timelineItem.text.

This is explained in more detail in the timelineItem resource reference documentation:

If both text and html are provided for an item, the html will be rendered in the timeline.

like image 149
mimming Avatar answered May 16 '23 07:05

mimming