Quickly Publish Text Programs

555

# Quickly Publish Text Programs

Path:

/api/program/program_name.vsn

Method: POST

Content-type: application/json; charset=utf-8

API Description: Program_name is the name of the program, which can be modified. If there are multiple items in the request data, you can also change the text type of one or more items to display different text types simultaneously. (api/program/program_name.vsn?autoplay=0 indicates that the program will not play immediately after being published.)

Request
Refer to Definition of Program File Format for relevant fields.

Example

{
	"Programs": {
		"Program": {
			"Pages": [{
				"Regions": [{
					"Rect": {
						"X": "0",
						"Y": "0",
						"Width": "256",
						"Height": "100"
					},
					"Items": [{
						"Type": "5",
						"IsScroll": "1",
						"BackColor": "0xFF000000",
						"Text": "Multi-line text test",
						"LogFont": {
							"lfHeight": "26",
							"lfUnderline": "0",
							"lfItalic": "0",
							"lfWeight": "0",
							"lfFaceName": ""
						}
					}]
				}]
			}]
		}
	}
}