Using the bitbucket REST API

2015-07-19 21:00:00
Views: 1116

using the bitbucket REST API


- Profile endpoint:

$ curl https://api.bitbucket.org/2.0/users/tenbruggencate

- Profile response:

{
  "username": "Bruggencate",
  "website": "http://www.why-guy.com/",
  "display_name": "Guy ten Bruggencate",
  "uuid": "{someuidnotsureiwantosharehere}",
  "links": {
    "hooks": {
      "href": "https://api.bitbucket.org/2.0/users/Bruggencate/hooks"
    },
    "self": {
      "href": "https://api.bitbucket.org/2.0/users/Bruggencate"
    },
    "repositories": {
      "href": "https://api.bitbucket.org/2.0/repositories/Bruggencate"
    },
    "html": {
      "href": "https://bitbucket.org/Bruggencate/"
    },
    "followers": {
      "href": "https://api.bitbucket.org/2.0/users/Bruggencate/followers"
    },
    "avatar": {
      "href": "https://bitbucket.org/account/Bruggencate/avatar/32/"
    },
    "following": {
      "href": "https://api.bitbucket.org/2.0/users/Bruggencate/following"
    },
    "snippets": {
      "href": "https://api.bitbucket.org/2.0/snippets/Bruggencate"
    }
  },
  "created_on": "2013-10-23T14:45:09.080107+00:00",
  "is_staff": false,
  "location": null,
  "type": "user"
}


- Links

https://bitbucket.org/ https://confluence.atlassian.com/bitbucket/rest-apis-222724129.html

why-guy add:

Last Tweets: