MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 27 forks source link

A way to get file content? #119

Closed weilinzung closed 2 years ago

weilinzung commented 2 years ago

Hi,

I want to get file content. is a way to do it? example, read a README.md or any YMAL files.

Thanks!

weilinzung commented 2 years ago

nvm

curl --request GET \
  --url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/src/{commit}/{path}' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Accept: application/json'