Ping Access API Method
매개변수
이 메서드는 매개변수를 받지 않습니다.
반품
값
문자열
로딩 중...
요청
1패키지 main23import (4"문맥"5"로그"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"로그"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}