Repository navigation
athletes.create_onboarding_link and the partner's onboarding addresses - #31
Merged
Merged
Conversation
POST /v1/athletes/{athlete_id}/onboarding-link returns a fresh link to the hosted
onboarding page (OnboardingLink); a partner's refresh address calls it when an athlete
opens an expired link. PartnerAccount gains return_url and refresh_url. Contract samples
from fuel-backend obrefresh (onboarding_link, partner_profile).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the partner side of the expired-onboarding-link refresh (fuel-backend #2376, SaturdayInc/sweb branch
obrefresh).Why. A link to Saturday's hosted questions page stops working after 90 days. A partner can now register a refresh address: an athlete who opens an expired link is sent there with
athlete_idandlocalein the query, and the partner's server asks for a fresh link and redirects. This is the call it makes.athletes.create_onboarding_link(athlete_id, locale=None)posts toPOST /v1/athletes/{athlete_id}/onboarding-linkand returnsOnboardingLink(object,athlete_id,url,expires_atin Unix seconds). A 5xx on it is retried (it makes no record).PartnerAccountgains optionalreturn_urlandrefresh_url(atotal=Falsesubclass), asGET /v1/partnernow shows them.onboarding_linkandpartner_profilefrom fuel-backend #2376 (scripts/sdk-contracts-sync.sh), mapped in the contract test.Checked: pytest 228 passed outside
tests/test_live.py(contract tests 109);mypy saturday tests/typecheck --check-untyped-defs --warn-unused-ignores: no issues.Land after fuel-backend #2376: the endpoint does not exist on the API until then.
🤖 Generated with Claude Code