mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 05:35:10 +00:00
Generate clients (#206)
This commit is contained in:
10
examples/time/now/node/returnsCurrentTimeOptionallyWithLocation.js
Executable file
10
examples/time/now/node/returnsCurrentTimeOptionallyWithLocation.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import * as time from "m3o/time";
|
||||
|
||||
// Get the current time
|
||||
async function ReturnsCurrentTimeOptionallyWithLocation() {
|
||||
let timeService = new time.TimeService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await timeService.now({});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await ReturnsCurrentTimeOptionallyWithLocation();
|
||||
Reference in New Issue
Block a user