How to get RSS token for BitBucket by PHP CLI?
I don't see any function related with that on official documentation. Maybe that feature not exists. For more information, you could use this link:
https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html
You could use stevenmaguire's Bitbucket OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
$provider = new Stevenmaguire\OAuth2\Client\Provider\Bitbucket([ 'clientId' => '{bitbucket-client-id}', 'clientSecret' => '{bitbucket-client-secret}', 'redirectUri' => 'https://example.com/callback-url']);$token = $_GET['code'];