Hello,
I would like to provide repo access to people who either a) subscribe to my Substack newsletter, or b) pay me a subscription fee on another platform.
Is there an API or integration that will allow me to do that? If I have to consider a specific subscription platform I have to use then that's fine just let me know what it is.
Perhaps using Repository Access Tokens are the answer here? I would just need to see an example of how to best setup the integration.
Thanks!
Hello @Richard Schilling and thank you for reaching out to Community!
While there's not an out-of-the-box integration that would automatically grant access to a repo based on a third-party platform, you have the option to use the Bitbucket Cloud invitation API endpoint to invite a particular user to a repository based on their email.
You could then create a script/automation that is triggered when a user subscribes to your Substack, which will then invite that user's email to the repository using the invitation API mentioned above.
For further details and examples on how to use that endpoint, you can refer to its official documentation below :
Thank you, @Richard Schilling !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.