Commits

Jesper Nøhr  committed 595e0ac

adding a README file

  • Participants
  • Parent commits 7c19962

Comments (0)

Files changed (3)

File bitbucket_oauth/README.txt

+Basic example application that hooks up to the Bitbucket.org API.
+
+Setup
+-----
+
+It's a standard Django application. Here are the dependencies (from pip freeze):
+
+Django==1.3
+PyYAML==3.09
+httplib2==0.6.0
+oauth2==1.5.167
+
+Running
+-------
+
+Do a 'manage.py syncdb' to get everything rolling, and then 'manage.py runserver'
+to run the development webserver.
+
+Now access the application on http://127.0.0.1:8000/ and click the "Authorize" button.
+
+This app has been set up to use the "Demo Application" consumer on Bitbucket.org, but
+in case you're doing any real integration work, you should obtain a consumer of your own.
+
+One can be gotten by emailing support@bitbucket.org :)

File bitbucket_oauth/lib/bbapi.py

             if self.response.startswith("Piston"):
                 message += self.response
             else:
-                message += self.response.splitlines()[0]
+                message += '\n'.join(self.response.splitlines())#[0]
 
         return "%s %s" % (str(self.status), message)
 

File bitbucket_oauth/settings.py

     'bitbucket_oauth.apps.main',
 )
 
-API_SERVER = ('api.bitbucket.org', 80)
+#API_SERVER = ('dev.bitbucket.org', 8000)
+API_SERVER = ('bitbucket.org', None)
 
-ENDPOINT = 'http://api.bitbucket.org/1.0/'
+#ENDPOINT = 'http://dev.bitbucket.org:8000/!api/1.0/'
+ENDPOINT = 'https://bitbucket.org/!api/1.0/'
 
 REQUEST_TOKEN_URL = ENDPOINT+'oauth/request_token/'
 AUTHORIZATION_URL = ENDPOINT+'oauth/authenticate/'