Api session event editor setting get sun altitude

From Tygron Support wiki
Revision as of 11:30, 10 April 2026 by Frank@tygron.nl (talk | contribs)
Jump to navigation Jump to search

API Endpoint: editorsetting/get_sun_altitude.

API Endpoint name is Api session event editor setting get sun altitude.

Use this endpoint to Get Sun Altitude value for local Time in this Project

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 Altitude value)
300-600 Codes Overview

Example POST

Curl example POST:

curl 'https://engine.tygron.com/api/session/event/editorsetting/get_sun_altitude/' -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_altitude/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));