1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can anyone get this to work with the Bitbucket API?

Discussion in 'Off Topic' started by Matthew Hawley, Dec 15, 2013.

  1. Matthew Hawley

    Matthew Hawley Well-Known Member

    I want to retrieve a list of user's bitbucket repos. I did it with Github but I can't get it to work with Bitbucket.

    Here is what I am using for Github.
    <script type="text/javascript">
        $(function() {
                type: "GET",
                url: "https://api.github.com/users/{$user.customFields.github}/repos",
                dataType: "json",
                success: function(result) {
                    for (i in result) {
                        "<li><a href='" + result[i].html_url + "' target='_blank'>" +
                        result[i].name + "</a></li>"
                        console.log("i: " + i);
                        $("#repo_count").append(" " + result.length);
    <li id="ourTab" class="profileContent">
        <div class="githubTitle">Repositories - <div id="repo_count" style="margin-left: 95px;margin-top: -19px;"></div></div>
        <div id="repos">
            <ul id="repo_list" ></ul>
        <div id="repo_content">
    Here is the restbrowser for the bitbucket api http://restbrowser.bitbucket.org/

    Thanks! :)
    Last edited: Dec 15, 2013

Share This Page