getApiKeys method

Future<Iterable<ApiKey>> getApiKeys()

Gets all api keys for the current user

Implementation

Future<Iterable<ApiKey>> getApiKeys() async {
  final response = await _get('/api/api_key');

  return response.data['items'].map<ApiKey>((e) => ApiKey.fromJson(e));
}