Hi,
I created an access token with all permission.
Now I want to use it to push and pull code from bitbucket.
I tried using api: I was not able to push folders with it.
thatswhy I used gitpython to do the operations, but it is not asking for access token while pulling and pushing code.
I do not use pipelines for this, just normal repositories
Can someone suggest me a workaround for this
Hi @Sudhansu_Sahoo,
Welcome to the community.
Could you confirm which Access token you're currently using? - https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/
Also, you mentioned you've tried using it against an API but you were not able to push folders with it.
Could you share the API endpoint you're using and the error message you're getting when you've tried that?
Regards,
Mark C
Hi @Mark C ,
Thank you for your response.
This is the endpoint i am using:
* https://api.bitbucket.org/2.0/repositories/godigit/pyops-test-project/src/
here is the data i am sending to the api:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sudhansu_Sahoo
Could you try to do a CURL command instead and see if it works for you?
You can check some sample CURL commands from this link.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.