RestClient class abstract
An abstract class for clients which return http.Response objects
Constructors
- RestClient({bool sandbox = false, String? apiKey, String? secretKey, String? passphrase})
Properties
Methods
-
createPaginationQueryParameters(
{int? before, int? after, int? limit}) → Map< String, dynamic> -
delete(
{required String path, Map< String, String> ? headers, Map<String, dynamic> ? queryParameters}) → Future<Response> - A DELETE method for coinbase exchange which automatically manages signing for authorization.
-
get(
{required String path, Map< String, String> ? headers, Map<String, dynamic> ? queryParameters}) → Future<Response> - A GET method for coinbase exchange which automatically manages signing for authorization.
-
getAfterHeader(
Response response) → int? -
getBeforeHeader(
Response response) → int? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
{required String path, Map< String, String> ? headers, Map<String, dynamic> ? body}) → Future<Response> - A POST method for coinbase exchange which automatically manages signing for authorization.
-
put(
{required String path, Map< String, String> ? headers, Map<String, dynamic> ? body}) → Future<Response> - A PUT method for coinbase exchange which automatically manages signing for authorization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- apiAuthority → const String
- defaultCurrencyId → const String
- defaultProductId → const String
- sandboxApiAuthority → const String