Skip to content

Add Client.validate_key() helper#101

Open
pakindipe wants to merge 1 commit intoGIScience:masterfrom
pakindipe:feature/validate-key
Open

Add Client.validate_key() helper#101
pakindipe wants to merge 1 commit intoGIScience:masterfrom
pakindipe:feature/validate-key

Conversation

@pakindipe
Copy link
Copy Markdown

This PR adds a small utility method to validate an OpenRouteService API key via a lightweight request.

  • Adds Client.validate_key() returning True on success
  • Raises ApiError for invalid credentials (bubbles up from request)
  • Includes unit tests using mocked requests (no network calls)

Fixes #100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a util function to check validity of API Key

1 participant