Skip to content

Add OAuth v3 API client - #635

Merged
ksvirkou-hubspot merged 4 commits into
masterfrom
feature/oauthV3
Oct 30, 2026
Merged

ksvirkou-hubspot merged 4 commits into
masterfrom
feature/oauthV3

Conversation

@ksvirkou-hubspot

Copy link
Copy Markdown
Collaborator

Why

The OAuth v3 token endpoints are available in the API but the PHP SDK has no client for them. The Node.js SDK already exposes them as oauth.v3.advancedApi, and the existing OAuth token APIs are the older ones.

What

  • Generated client for OAuth v3 in codegen/Oauth/V3 (OpenAPI Generator 7.19.0, same as the rest of codegen/).
  • AdvancedApi with getToken, introspectToken and revokeToken, plus the request/response models.

Not included

  • Discovery wiring (lib/Discovery/Oauth), so the client is not reachable from $client->oauth() yet.
  • Tests for the new client.

Verification

  • php -l passes for all generated files.
  • Called the three operations against mocked Guzzle responses:
    • getToken and introspectToken send the expected form-encoded requests and deserialize the responses.
    • revokeToken returns normally for 200 and 204 with an empty body, and a 400 raises ApiException.

🤖 Generated with Claude Code

This was referenced Oct 28, 2026
Add OAuth v3 discovery and deprecate OAuth v1
…etToken() no longer fails on token_use access_token
@ksvirkou-hubspot
ksvirkou-hubspot merged commit 041cf61 into master Oct 30, 2026
4 checks passed
@ksvirkou-hubspot
ksvirkou-hubspot deleted the feature/oauthV3 branch October 30, 2026 14:39
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.

2 participants