PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/readme.md

https://bitbucket.org/alex_prokopenko/bitbucketoauth
Markdown | 15 lines | 10 code | 5 blank | 0 comment | 0 complexity | d83b9c331acbabb901c31c789886fc57 MD5 | raw file
  1. # BitBucket + OAuth class.
  2. contain code to login to bitbucket using OAuth 1.0a and example of how to use.
  3. you can extend your class and write your own API calls which already use authentification.
  4. #### Example usage
  5. 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.
  6. * **index.php**: contain code to check if you're logged in
  7. * **login.php**: contain code to call class method to get login URL
  8. * **auth.php**: is a callback url. it's needed to get access token when you return back from BitBucket login process
  9. * **test-oauth.php**: simple test - show your repos, connected to your account
  10. **Note:** OAuth lib was taken from BitBucket OAuth libs links ( [simple OAuth library by Cal Henderson](https://svn.iamcal.com/public/php/lib_oauth/lib_oauth.php) ). But this lib was modified a bit.