Giter VIP home page Giter VIP logo

Comments (5)

vongrippen avatar vongrippen commented on June 26, 2024

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.

keithpitt avatar keithpitt commented on June 26, 2024

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.

keithpitt avatar keithpitt commented on June 26, 2024

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.

vongrippen avatar vongrippen commented on June 26, 2024

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.

meatherly avatar meatherly commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.