Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.01 KB

File metadata and controls

49 lines (32 loc) · 1.01 KB

PeatioSdk.TimestampApi

All URIs are relative to http://localhost:8000/api/v2

Method HTTP request Description
timestamp GET /timestamp Get server current time, in seconds since Unix epoch.

timestamp

'Number' timestamp()

Get server current time, in seconds since Unix epoch.

Get server current time, in seconds since Unix epoch.

Example

var PeatioSdk = require('peatio-sdk');

var apiInstance = new PeatioSdk.TimestampApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.timestamp(callback);

Parameters

This endpoint does not need any parameter.

Return type

'Number'

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json