-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurrent-time.ts
38 lines (30 loc) · 943 Bytes
/
current-time.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import * as Shared from './shared';
export class CurrentTime extends APIResource {
/**
* current-time
*/
retrieve(options?: Core.RequestOptions): Core.APIPromise<CurrentTimeRetrieveResponse> {
return this._client.get('/api/where/current-time.json', options);
}
}
export interface CurrentTimeRetrieveResponse extends Shared.ResponseWrapper {
data: CurrentTimeRetrieveResponse.Data;
}
export namespace CurrentTimeRetrieveResponse {
export interface Data {
entry: Data.Entry;
references: Shared.References;
}
export namespace Data {
export interface Entry {
readableTime?: string;
time?: number;
}
}
}
export declare namespace CurrentTime {
export { type CurrentTimeRetrieveResponse as CurrentTimeRetrieveResponse };
}