Get Clock
package main
import (
"context"
"fmt"
"github.com/clear-street/clear-street-go"
"github.com/clear-street/clear-street-go/option"
)
func main() {
client := clearstreet.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.V1.Calendar.GetClock(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{
"data": {
"clock": "2025-03-01T03:35:00.000000000Z"
},
"error": null,
"metadata": {
"request_id": "1b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e"
}
}Returns Examples
{
"data": {
"clock": "2025-03-01T03:35:00.000000000Z"
},
"error": null,
"metadata": {
"request_id": "1b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e"
}
}