Comments (5)
Yeah, this is one that people get tripped up on. When initializing the BitBucket object, you have to also set consumer_secret and consumer_id. Check the block-style initialization here: https://github.com/vongrippen/bitbucket#usage
from bitbucket.
Oh right! Perhaps we should delete this example this:
bitbucket = BitBucket.new oauth_token: 'request_token', oauth_secret: 'request_secret'
That's what I was looking at.
from bitbucket.
I thought that block was for enterpise only:
Alternatively, you can configure the BitBucket settings by passing a block, for instance, with custom enteprise endpoint like
from bitbucket.
Yeah, sorry it wasn't very clear. One way of setting things up is to set the consumer_token and _id on the class itself and then any objects instantiated after that time would already have the consumer credentials set, after which you could leave them out of the BitBucket.new
If you get down into the rdocs, it's a bit more explicit if I remember correctly. It was mostly just to show an extended example of the different ways of using it.
Basically you can configure it using a block, using the initializer, or via class methods. However you want.
from bitbucket.
I've changed the code to allow you to supply your consumer key and consume the api that way. #25
from bitbucket.
Related Issues (20)
- Is This Gem Still Supported?
- ひよごん
- Mai Difussion
- Job application
- My technopreneurship prototype
- Question - How I can each all pages of result? HOT 2
- download repos HOT 2
- list all repos same name ?
- download repos HOT 2
- Consumer key not working HOT 1
- Webhook creation fails with BitBucket::Error::Unauthorized HOT 3
- https://api.bitbucket.org/1.0/user/repositories endpoint stopped working HOT 4
- each_page does not work due to no PageIterator object
- OAuth token/secret HOT 4
- Warning: You are setting a key that conflicts with a built-in method Hashie::Mash HOT 1
- repos.pull_request.all: Calling links on LinkHashie::Mash Result Causes NameError
- repos.pull_request.all Returns Variable Length Array Depending on if There Are More Pages HOT 2
- New features, no release?
- SSL verification turned off by default
- how to fetch all the branches?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitbucket.