From deefecc96b8697ce16de34863757f5f4042941d6 Mon Sep 17 00:00:00 2001 From: Pavel Sadikov Date: Fri, 9 Nov 2018 14:28:48 -0500 Subject: [PATCH] Fix base URLs --- bitbucket/__init__.py | 2 +- bitbucket/bitbucket.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitbucket/__init__.py b/bitbucket/__init__.py index 50c6032..0c174b9 100644 --- a/bitbucket/__init__.py +++ b/bitbucket/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__version__ = '0.5.4' +__version__ = '0.5.5+bitsight' __doc__ = """ Bitbucket has a REST API publicly available, this package provide methods to interact with it. diff --git a/bitbucket/bitbucket.py b/bitbucket/bitbucket.py index 55c0d1e..f7af708 100644 --- a/bitbucket/bitbucket.py +++ b/bitbucket/bitbucket.py @@ -27,8 +27,8 @@ # = URLs = # ======== URLS = { - 'BASE': 'https://bitbucket.org/!api/1.0/%s', - 'BASE_V2': 'https://bitbucket.org/!api/2.0/%s', + 'BASE': 'https://api.bitbucket.org/1.0/%s', + 'BASE_V2': 'https://api.bitbucket.org/2.0/%s', 'BASE_APIv2': 'https://api.bitbucket.org/2.0/%s', # Get user profile and repos 'GET_USER': 'users/%(username)s/',