What happens if I fill in both text and html fields of a timeline element?

Both text and html fields of the timeline element display the contents of the timeline map. What happens if I fill in the timelineItem.text and timelineItem.html fields?

eg.

 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" } 
+4
source share
1 answer

Your value for timelineItem.html will exceed the value specified for timelineItem.text .

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

If both text and html provided for an element, html will be displayed on the timeline.

+7
source

Source: https://habr.com/ru/post/1486946/


All Articles