Skip to content

[Junie]: Integrate Shopee Brand Portal Performance APIs#33

Open
github-actions[bot] wants to merge 1 commit into
masterfrom
junie/issue-32-29135183863
Open

[Junie]: Integrate Shopee Brand Portal Performance APIs#33
github-actions[bot] wants to merge 1 commit into
masterfrom
junie/issue-32-29135183863

Conversation

@github-actions

Copy link
Copy Markdown

📌 Hey! This PR was made for you with Junie, the coding agent by JetBrains Early Access Preview

It's still learning, developing, and might make mistakes. Please make sure you review the changes before you accept them.
We'd love your feedback — join our Discord to share bugs, ideas: here.

📊 Junie Summary:

Summary

  • Added support for Shopee Brand Portal OpenAPI announcement #1462 by introducing all newly announced v2.principal.* performance endpoints in the SDK.
  • Extended client auth/signature flow to support principal_id-scoped calls while keeping existing shop_id behavior intact.

Changes

  • Added new resource src/Resources/Principal.php with 11 endpoint wrappers for sales, affiliate, livestream, and video performance APIs.
  • Updated src/Client.php to register/read Principal resource, add setPrincipalAccessToken($principal_id, $access_token), inject principal_id into signed requests, and sign using principal_id when present.
  • Added/updated tests: new tests/Resources/PrincipalTest.php for all 11 endpoint mappings, plus tests/ClientTest.php coverage for Principal resource access and principal-vs-shop signature behavior.

Verification

  • Ran full test suite with composer test.
  • Result: OK (273 tests, 531 assertions).

Integrate Shopee Brand Portal Performance APIs

Co-authored-by: nVuln <54855446+nVuln@users.noreply.github.com>
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.

[Important] Brand Portal Service OpenAPI Now Available [Shopee-ID:1462]

1 participant