Skip to content

Small PHP lib to speak to BitBucket API with OAuth 1.0a

Notifications You must be signed in to change notification settings

driesdroesbeke/bitbucketauthapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitBucket + OAuth class.

contain code to login to bitbucket using OAuth 1.0a and example of how to use. you can extend your class and write your own API calls which already use authentification.

Example usage

You can also find here examples how to use this code. To do that - you need to edit config.php and add your credentials there.

  • index.php: contain code to check if you're logged in
  • login.php: contain code to call class method to get login URL
  • auth.php: is a callback url. it's needed to get access token when you return back from BitBucket login process
  • test-oauth.php: simple test - show your repos, connected to your account

Note: OAuth lib was taken from BitBucket OAuth libs links ( simple OAuth library by Cal Henderson ). But this lib was modified a bit.

About

Small PHP lib to speak to BitBucket API with OAuth 1.0a

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published