EstuaryClient.DefaultApi
All URIs are relative to //api.estuary.tech/
Method | HTTP request | Description |
---|---|---|
viewerGet | GET /viewer | Fetch viewer details |
viewerGet
UtilViewerResponse viewerGet()
Fetch viewer details
This endpoint fetches viewer details such as username, permissions, address, owned miners, user settings etc.
Example
import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';
let apiInstance = new EstuaryClient.DefaultApi();
apiInstance.viewerGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json