You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am using API in bitbucket.org, before I can get data with APIs, I need to make Authentication by this API
To access any api endpoint you have to setup auth in your app and ask for email and password and then call the following api:
The API will return in a case of successfull login: a token that you have to save it. And then you can access any API endpoint using that token.
I try this code but it always say Email or Password is not valid
var client = new RestClient("https://smartmenu22.com/api/auth/login"); var request = new RestRequest(Method.POST); request.AddParameter("email", email); request.AddParameter("password", password); request.AddHeader("cache-control", "no-cache"); request.AddHeader("content-type", "application/x-www-form-urlencoded"); IRestResponse response = client.Execute(request); dynamic resp = JObject.Parse(response.Content); string token = resp.access_token;
Hi @Mustafa Ahmed,
I would suggest reaching out to the developers or the support team of this API to request assistance. We can assist with any issues related to Bitbucket Cloud, but we can't offer much help with an API of a different product that is not developed by Atlassian.