Api session event editor setting get sun motion

From Tygron Support wiki
Revision as of 13:40, 14 April 2026 by Frank@tygron.nl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Endpoint: editorsetting/get_sun_motion.

Description: Get Sun Motion value for local Time in this Project (The Netherlands only)

Name Importance Type Description Values
0 REQUIRED (Integer number) Year
1 REQUIRED (Integer number) Month
2 REQUIRED (Integer number) Day
3 REQUIRED (Integer number) Hour
4 REQUIRED (Integer number) Minute
5 REQUIRED (Integer number) Second

Response Codes

Response Code: Description
200 Double (Sun Motion value)
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editorsetting/get_sun_motion/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 2013, 8, 2, 12, 0, 0 ]'

JavaScript example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '[ 2013, 8, 2, 12, 0, 0 ]'
};
fetch("https://engine.tygron.com/api/session/event/editorsetting/get_sun_motion/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));