Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 908 Bytes

AccountApi.md

File metadata and controls

47 lines (30 loc) · 908 Bytes

CodaJsClient.AccountApi

All URIs are relative to https://coda.io/apis/v1

Method HTTP request Description
whoami GET /whoami Get user info

whoami

User whoami()

Get user info

Returns basic info about the current user.

Example

import CodaJsClient from 'coda-js-client';
let defaultClient = CodaJsClient.ApiClient.instance;


let apiInstance = new CodaJsClient.AccountApi();
apiInstance.whoami().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

User

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json