ApiClient constructor

ApiClient({
  1. String basePath = 'https://raw.githubusercontent.com/api/v2',
})

Implementation

ApiClient({this.basePath = 'https://raw.githubusercontent.com/api/v2'}) {
  // Setup authentications (key: authentication name, value: authentication).
  _authentications[r'BasicAuthentication'] = HttpBasicAuth();
  _authentications[r'QuerystringAuthentication'] =
      ApiKeyAuth('query', 'u=&p=');
  _authentications[r'TokenAuthentication'] =
      ApiKeyAuth('header', 'Authorization');
}