Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,601
Community Members
 
Community Events
176
Community Groups

How to get Token by make Authentication with Email and Password

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:

 https://smartmenu22.com/api/auth/login

 

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;

 

1 answer

0 votes

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.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events