Giter VIP home page Giter VIP logo

node-random-org's People

Contributors

dependabot[bot] avatar dijonkitchen avatar richie3366 avatar willfrew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-random-org's Issues

Add an optional callback api

All api calls should support an optional callback.

I'm not sure how/if this would affect performance since we wouldn't really be able to use Promise.method as we wouldn't want to return a promise when someone is using the callback api and vice versa.

Issue while generating signed strings with developer key (HTTP 405)

I'm getting an HTTP error while using the generateSignedStrings() method. I'm using the free Developer API key. Keep in mind that this doesn't happen with a migrated Beta API key.

Console output:

{ Error: The API key you specified is not valid for the version of the API you are invoking at path\to\node_modules\random-org\src\RandomOrg.js:62:23 at process._tickCallback (internal/process/next_tick.js:68:7) code: 405 }

Official support for RANDOM.ORG API v2

There's now a second release of the API that includes some additional api methods (see here for docs). We'll need to switch to the new endpoint by default and add support for those new methods.

#8 makes us compatible with the new api at least and for now it's possible to pass { endpoint: 'https://api.random.org/json-rpc/2/invoke' } to the RandomOrg constructor to switch to the new one but this isn't ideal.

Typescript support

Quickest way to add typescript support would be to add a definition file - converting to typescript is non-trivial given the current code structure.

error on callback

i am using method generateSignedIntegers
Sometimes, throw error, but in callback have only result. how i can catch error and to call method once again or to make other action?

Drop the bluebird dependency

There's no real need now with the most recent versions of node happily supporting Promises natively.

Although for people who want to use the Promise-based api on older versions of node, we should let them pass a Promise constructor as an optional parameter for us to use.

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.