How to Use UTC and Local Time
VXG API always functions in UTC. However, it is possible to request certain objects (clips in the examples below) in the local camera time by adding the usecamtz parameter - in the timezone that was configured when the camera was added to the cloud.
Here are the examples for GET method v2/storage/clips/{CLID}/ returning times in UTC or camera local time:
UTC:
curl -X GET "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v2/storage/clips/44038648/" -H "accept: application/json" -H "Authorization: LKey LICENSEKEY"
Response:
{
"access": [
"all"
],
"camid": 284741,
"created": "2022-08-12T16:12:46.491208",
"delete_at": null,
"duration": 60,
"end": "2022-08-12T16:01:00",
"event_time": null,
"expire": "2022-08-12T21:44:40.809575",
"group": "Lessons",
"id": 44038648,
"size": "13377803",
"start": "2022-08-12T16:00:00",
"status": "done",
"thumb": {
"height": 1080,
"size": 175187,
"time": "2022-08-12T16:00:00",
"url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m285181/c284741/clips/44038648.jpg?AWSAccessKeyId=ASIAWEOIJQJ5SQWH7FEX&Expires=1660340680&x-amz-security-token=IQoJb3JpZ2luX2VjEBAaCXVzLWVhc3QtMSJHMEUCIAiuV6XdkP5phVFdPxvOs1c1egTgyF4Dh0VM9mHKHa4DAiEA40GOpje%2B7EoP3NOU09zXmP1nk0Q0IoEVJTokC5kVatUq0gQIeRAAGgw0MjE4NjM3MTk1NDciDAj5Z2jHVTQYpWVcLyqvBAKMYkRxjfopbPpwtoWBvPSFq9hh5LH48l%2BhcjKWXL7YlYmn%2BOKyqwz03ivnEbt5MgfEBcdafuKHh4jsWo5O7PcNdneOReD3knl4vrpA6ru1Vkq16iuDuVJZkRLG%2F0xBUhTGN4ci%2FguBoVrPjs%2BlLrn8Qxu3qNccsJdvfmjBq5FpqiGvqr7y%2FBHkKYoOotZodJP0Hitif7ubseEo%2BRngnDrOHdG6brvotFxydA58O%2F%2BsC1V3FTX5p8lIc3D2FtyZBhE%2FD7puwiskG7F9N7cwM06Sz4Ec%2FZ8%2BZkcqDk66xqWW3DSwEPSmxm%2BfFGYf4x7DMMBBkNRcHJYYwNQF8Z41xSjoqE76iVZBmVy9CE8TZT1T6%2BA5Rtuw7VqLlhLUr4A2yeFYdKGFqlgnErQdIIeITIGmvG4olhdTBOcexcrEvJhubXuMyFY0hSKBdD4Zi6VoRJmD%2BJZnGagDRgwbn7BJU2JSbrTPafpoKBJ9aLb9f0ivuTsUmt%2FNEipACdx0COzf87ImZ%2BphHDurBB9GwYF5J%2Bb%2FX%2BlmrMDuw2%2FTnaxZacbg4Zg6vx5ovsu2eF4ZLsz5LWkgD3kHfXlNWzd78t4%2Beayf0Veveu0JRmrTIOsSZxqY4P3sX9%2BFaKFMRGOXnwlg40uRck60158V3TtDj88a8%2BOj8aISeSPEKQb0gIgPuklTwqBTwfUWeATiwkbRVKt57W6R84DR7wptlsbxpo%2BD%2FI7JQ0ZD8K9qBfCD8Hy27F8wvunZlwY6qQG5n4ixfzABea9%2FBre54De2heWQvCt4pZxUi4eo%2FjIbJ4HJ3509A%2Femo9kYzK8f2Avvce16uSPQFPGYw%2FHjxSxoMmUZd2bGdNg5m3XTqEZZKXUJNtLWZ7eNpSNxTmGd%2BPYOc8ZH6nPwUShM1p%2FkSWvMHuaDSWzN8gBHBnLjfD8HTE6QdOL0AYTmOFHRT36dUuBP2s%2F9zL%2B3cvf%2B4ShUcFW0848RhbV2Gme9&Signature=1yscS%2BeguYETtYPdd0c0MOQyQhI%3D",
"width": 1920
},
"title": "Intro",
"url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m285181/c284741/clips/44038648_d60.mp4?response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27Intro.mp4&AWSAccessKeyId=ASIAWEOIJQJ5SQWH7FEX&Expires=1660340680&x-amz-security-token=IQoJb3JpZ2luX2VjEBAaCXVzLWVhc3QtMSJHMEUCIAiuV6XdkP5phVFdPxvOs1c1egTgyF4Dh0VM9mHKHa4DAiEA40GOpje%2B7EoP3NOU09zXmP1nk0Q0IoEVJTokC5kVatUq0gQIeRAAGgw0Mj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FW0848RhbV2Gme9&Signature=m4rYiKn6vix5RzJIDovZouSzMJo%3D",
"wait_for_data": false
}
Camera timezone (Canada/Eastern) used:
curl -X GET "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v2/storage/clips/44038648/?usecamtz" -H "accept: application/json" -H "Authorization: LKey LICENSEKEY"
Response:
{
"access": [
"all"
],
"camid": 284741,
"created": "2022-08-12T16:12:46.491208",
"delete_at": null,
"duration": 60,
"end": "2022-08-12T12:01:00",
"event_time": null,
"expire": "2022-08-12T21:44:40.809575",
"group": "Lessons",
"id": 44038648,
"size": "13377803",
"start": "2022-08-12T12:00:00",
"status": "done",
"thumb": {
"height": 1080,
"size": 175187,
"time": "2022-08-12T12:00:00",
"url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m285181/c284741/clips/44038648.jpg?AWSAccessKeyId=ASIAWEOIJQJ5SQWH7FEX&Expires=1660340680&x-amz-security-token=IQoJb3JpZ2luX2VjEBAaCXVzLWVhc3QtMSJHMEUCIAiuV6XdkP5phVFdPxvOs1c1egTgyF4Dh0VM9mHKHa4DAiEA40GOpje%2B7EoP3NOU09zXmP1nk0Q0IoEVJTokC5kVatUq0gQIeRAAGgw0MjE4NjM3MTk1NDciDAj5Z2jHVTQYpWVcLyqvBAKMYkRxjfopbPpwtoWBvPSFq9hh5LH48l%2BhcjKWXL7YlYmn%2BOKyqwz03ivnEbt5MgfEBcdafuKHh4jsWo5O7PcNdneOReD3knl4vrpA6ru1Vkq16iuDuVJZkRLG%2F0xBUhTGN4ci%2FguBoVrPjs%2BlLrn8Qxu3qNccsJdvfmjBq5FpqiGvqr7y%2FBHkKYoOotZodJP0Hitif7ubseEo%2BRngnDrOHdG6brvotFxydA58O%2F%2BsC1V3FTX5p8lIc3D2FtyZBhE%2FD7puwiskG7F9N7cwM06Sz4Ec%2FZ8%2BZkcqDk66xqWW3DSwEPSmxm%2BfFGYf4x7DMMBBkNRcHJYYwNQF8Z41xSjoqE76iVZBmVy9CE8TZT1T6%2BA5Rtuw7VqLlhLUr4A2yeFYdKGFqlgnErQdIIeITIGmvG4olhdTBOcexcrEvJhubXuMyFY0hSKBdD4Zi6VoRJmD%2BJZnGagDRgwbn7BJU2JSbrTPafpoKBJ9aLb9f0ivuTsUmt%2FNEipACdx0COzf87ImZ%2BphHDurBB9GwYF5J%2Bb%2FX%2BlmrMDuw2%2FTnaxZacbg4Zg6vx5ovsu2eF4ZLsz5LWkgD3kHfXlNWzd78t4%2Beayf0Veveu0JRmrTIOsSZxqY4P3sX9%2BFaKFMRGOXnwlg40uRck60158V3TtDj88a8%2BOj8aISeSPEKQb0gIgPuklTwqBTwfUWeATiwkbRVKt57W6R84DR7wptlsbxpo%2BD%2FI7JQ0ZD8K9qBfCD8Hy27F8wvunZlwY6qQG5n4ixfzABea9%2FBre54De2heWQvCt4pZxUi4eo%2FjIbJ4HJ3509A%2Femo9kYzK8f2Avvce16uSPQFPGYw%2FHjxSxoMmUZd2bGdNg5m3XTqEZZKXUJNtLWZ7eNpSNxTmGd%2BPYOc8ZH6nPwUShM1p%2FkSWvMHuaDSWzN8gBHBnLjfD8HTE6QdOL0AYTmOFHRT36dUuBP2s%2F9zL%2B3cvf%2B4ShUcFW0848RhbV2Gme9&Signature=1yscS%2BeguYETtYPdd0c0MOQyQhI%3D",
"width": 1920
},
"title": "Intro",
"url": "https://skyvr-av-auth2-rel.s3.amazonaws.com/u17/m285181/c284741/clips/44038648_d60.mp4?response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27Intro.mp4&AWSAccessKeyId=ASIAWEOIJQJ5SQWH7FEX&Expires=1660340680&x-amz-security-token=IQoJb3JpZ2luX2VjEBAaCXVzLWVhc3QtMSJHMEUCIAiuV6XdkP5phVFdPxvOs1c1egTgyF4Dh0VM9mHKHa4DAiEA40GOpje%2B7EoP3NOU09zXmP1nk0Q0IoEVJTokC5kVatUq0gQIeRAAGgw0MjE4NjM3MTk1NDciDAj5Z2jHVTQYpWVcLyqvBAKMYkRxjfopbPp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