Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Integrate bitbucket with C#

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

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
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

224 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you