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" }
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
andhtml
are provided for an item, thehtml
will be rendered in the timeline.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With