getCurrentKey method

Future<OpenRouterCurrentApiKey> getCurrentKey()

Implementation

Future<OpenRouterCurrentApiKey> getCurrentKey() async {
  final response = await _send(
    method: 'GET',
    path: '/key',
    expectedStatusCodes: const {200},
  );

  return OpenRouterCurrentApiKey.fromMap(
    _requireMap(response['data'], 'data'),
  );
}