testPing method

Future<Either<String, bool>> testPing()

Test connectivity to the Rest API.

Implementation

Future<Either<String, bool>> testPing() => sendRequest(
      path: 'fapi/v1/ping',
      type: RequestType.GET,
    ).then((r) => r.isRight ? const Right(true) : Left(r.left));