Questions tagged [bitbucket-api]

The Bitbucket REST API allows third-party application developers the means for writing applications for the Bitbucket service.

The Bitbucket REST API allows third-party application developers the means for writing applications that integrate with the Bitbucket service. The API includes ways to manage the repository changesets, issues on the issue tracker, permissions etc.

See also

430 questions
0
votes
1 answer

Bitbucket Cloud REST API for create/delete/enable/disable Bitbucket accounts?

what is the Bitbucket REST API for the create/delete/enable/disable Bitbucket accounts?
teodoro
  • 247
  • 7
  • 21
0
votes
1 answer

TeamCity / BitBucket - Commit Status Publisher

We've got our source code up in BitBucket cloud and we're using TeamCity, with the "Commit Status Publisher" plugin. I was using our repository url (for example https://bitbucket.org/test/test.git) as the "Stash base url", which worked for a while,…
Andrew Boyd
  • 171
  • 1
  • 12
0
votes
1 answer

Handling a multidimensional response object from REST API in Python dictionary

I am trying to handle a response object returned from BitBucket's API in Python. I have the following code to try and handle the response: import requests import json url = 'http:www.sampleurl.com' myResponse =…
Mark D
  • 163
  • 1
  • 15
0
votes
1 answer

calling function names with strings python

I would like to be able to pass a call of either get, post, delete, etc, into my requests function. So instead of having all these different functions for each RESTFULness, I'd like to have a func like: I have: class BitbucketAPIHoss(object): …
codyc4321
  • 9,014
  • 22
  • 92
  • 165
0
votes
1 answer

Bitbucket API Access token expiry

I am making an app which integrates with bitbucket using oauth. My question is how do I get the token details such as the token expiry date or the token permissions. Is there any endpoint on the bitbucket API which will give me these details SOLVED:…
Nahush Farkande
  • 5,290
  • 3
  • 25
  • 35
0
votes
0 answers

Cannot get user info by access token

I am trying to get information about user by access_token... I have tried a lot of variants for doing this. Although some variants work in the API console but they don't in application. public class AuthActivity extends…
Denis Sologub
  • 7,277
  • 11
  • 56
  • 123
0
votes
1 answer

Is there is an API to push content to the Bitbucket Repo

Hi Kudos past few days iam researching the Bitbucket API documentation, I could not found an Proper instruction and API to push the content to Repo either in raw or encoded(base64).. If anybody know's the API or mechanism to push the content through…
Anumantha Raja
  • 261
  • 2
  • 13
0
votes
1 answer

SourceTree / BitBucket: Need Script to Add Many Versions of Project

I have a VBA project that has been religiously backed up daily for 12 months by exporting all modules to an otherwise empty folder; folder name corresponds to the backup date. Recently I discovered SourceTree and BitBucket, so now I want to add all…
0
votes
1 answer

Gradle DSL method not found: 'credentials()'

I am trying to add a dependency from my private BitBucket account using the BitBucket API following the accepted answer to this SO post. My project root level build.gradle file: // Top-level build file where you can add configuration options common…
kRiZ
  • 2,320
  • 4
  • 28
  • 39
0
votes
1 answer

Bitbucket API Create New Issue 401 Unauthorized

I am using OkHttp to make a POST request to the Bitbucket API to create a new issue. Their documentation says that a private repo or a private issue tracker require authentication to create new issues with this API. Both my repo and my issue tracker…
Jason Crosby
  • 3,533
  • 4
  • 28
  • 49
0
votes
1 answer

Authorizing BitBucket API from Console app

I'm building a Symfony Console script (PHP). Is it possible to authorize BitBucket API (oAuth) from a command-line, console-based app (i.e., without browser)? Or put another way -- does BitBucket allow 2-legged oAuth 2.0?
JoshuaDavid
  • 8,861
  • 8
  • 47
  • 55
0
votes
0 answers

Error while trying to merge a pullrequest with bitbucket api

I get an error every time when I'm trying to merge a pull request with the bitbucket api. This is my code: define('USERNAME','***'); define('PASSWORD','***'); $url =…
thmspl
  • 2,437
  • 3
  • 22
  • 48
0
votes
2 answers

BitBucket API download src file zip issue

I am connecting to the BitBucket API and would like to be able to download the zip file of a repository to the server. Due to the repositories being private it requires user access. I can download the file by the user login details within the…
Ufb007
  • 243
  • 2
  • 8
0
votes
1 answer

Not retrieving token with bitbucket API

I am trying to get a request token from Bitbucket but I'm getting "BAD REQUEST - Could not verify OAuth request". I am doing this with drupal and here is the code I have so far: $key = "MY_KEY"; $secret ="MY_SECRET"; $timestamp = time(); $nonce =…
Kim Janssens
  • 339
  • 4
  • 13
0
votes
1 answer

Bitbucket API bad request while trying to merge

This is my code: $url = "https://bitbucket.org/api/2.0/repositories/***/***/pullrequests/35/merge"; $curl1 = curl_init(); curl_setopt($curl1, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ); curl_setopt($curl1, CURLOPT_USERPWD,…
thmspl
  • 2,437
  • 3
  • 22
  • 48