Api session event editor setting get sun motion

From Tygron Support wiki
Jump to navigation Jump to search

API Event to 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://development.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 31410104zAuxtcJo8WGhL6iYlCDnU5hd" },
 body: '[ 2013, 8, 2, 12, 0, 0 ]'
};
fetch("https://development.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));