Difference between revisions of "Uzenet REST API"

From Uzebox Wiki
Jump to: navigation, search
Line 4: Line 4:
 
=='''Obtain Universal Coordinated Timestamp'''==
 
=='''Obtain Universal Coordinated Timestamp'''==
  
Obtain a UTC Unix timestamp representing the current date and time. This timestamp can be processed using regular C functions. To get local time, use C function ex:  set_zone(-4 * ONE_HOUR);
+
Obtain a UTC Unix timestamp representing the current date and time. This timestamp can be processed using regular C functions.  
  
 
'''GET http://uzebox.org/uzenet/time.php'''
 
'''GET http://uzebox.org/uzenet/time.php'''
Line 11: Line 11:
  
 
'''Response example:''' 1445650798
 
'''Response example:''' 1445650798
 +
 +
===Description===
 +
To get local time, use C function ex:  set_zone(-4 * ONE_HOUR).

Revision as of 01:41, 24 October 2015

This page describes the Uzenet REST API. This API allows Uzenet functions to be performed by tools, programs or games over the common HTTP protocol.


Obtain Universal Coordinated Timestamp

Obtain a UTC Unix timestamp representing the current date and time. This timestamp can be processed using regular C functions.

GET http://uzebox.org/uzenet/time.php

Response: 32-bit Integer

Response example: 1445650798

Description

To get local time, use C function ex: set_zone(-4 * ONE_HOUR).