I
I
InterestingPerson2015-11-05 16:38:00
JavaScript
InterestingPerson, 2015-11-05 16:38:00

How to get data via ajax?

I need to get data from bitbucket using its api, for example, I need to get all my repositories, but the problem is in basic authorization, where should I specify data (login and password from bitbucket) when sending a request?

$.get('https://bitbucket.org/api/1.0/user/', function(data) {
  console.log(data);
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-11-05
@InterestingPerson

Like this: stackoverflow.com/questions/5507234/how-to-use-bas...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question