Ping Access API Method
パラメータ
このメソッドはパラメータを受け付けません
返品
値
文字列
読み込み中...
リクエスト
1パッケージ main23import (4「文脈」5「log」67"github.com/onflow/flow/protobuf/go/flow/access"8)910func main() {1112// Requires authenticating before making the request. Refer to Intro Page on how Authentication can be done.13client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")14ctx := context.Background()15もし err != nil {16log.Fatalf("err: %v", err)17}18// Ping19res, err := client.Ping(ctx, &access.PingRequest{})20もし err != nil {21log.Fatal("ping failed: ", err)22}23println("Ping returned", res)24}
1パッケージ main23import (4「文脈」5「log」67"github.com/onflow/flow/protobuf/go/flow/access"8)910func main() {1112// Requires authenticating before making the request. Refer to Intro Page on how Authentication can be done.13client, err := getAccessClientWithBasicAuth("ENDPOINT-NAME", "TOKEN_GOES_HERE")14ctx := context.Background()15もし err != nil {16log.Fatalf("err: %v", err)17}18// Ping19res, err := client.Ping(ctx, &access.PingRequest{})20もし err != nil {21log.Fatal("ping failed: ", err)22}23println("Ping returned", res)24}