getKey method

Implementation

Future<OpenRouterManagedApiKey> getKey(String hash) async {
  final response = await _send(
    method: 'GET',
    path: '/keys/${Uri.encodeComponent(hash)}',
    expectedStatusCodes: const {200},
  );

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