Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate bitbucket with C#

kefah aleesa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2021

I want to integrate my c# service with bitbucket cloud by using rest API so I can 

Fork repositories
create branches 
edit files 
Grant users as admin to the new repositories
I found that the Atlassian.Stash.Api library is the best for that
But I feel confused by the authentication method should I use
the library does not support the Oauth2 authentication and the basic authentication its not working  I keep have this error :

One or more errors occurred. (Unexpected character encountered while parsing value: T. Pat

so can you help if Atlassian.Stash.Api  supports Outh2 authentication ?  and what the best way to integrated with bitbucket using c# 

 

Thank you 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 19, 2021

This suggests your code is not sending valid text to the server when you make the rest call.  You'll need to work out what is is sending and why replace the "T.Pat" it is sending with something valid.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events