Page 1 of 1

Poker Mavens API wrapper for Node.js

Posted: Tue Jun 28, 2016 9:45 pm
by harrythree
Hello all! I just published an NPM module that for the Poker Mavens API. The module is a lightweight promise based wrapper of the PM API.

https://www.npmjs.com/package/pokermavens

Feel free to download it and use it. If you find any bugs, it is open source, so pull requests are welcomed!

I've been using the module to build a Node.js REST API that adds oAuth 2 on top of the current PM API. This has allowed me to build a mobile app for Poker Mavens without needing to have the API password baked into the mobile app code. Instead it will exchange oAuth access tokens be able to use different endpoints. Having the Node.js server in the middle also allowed to have more access control of the PM API (eg Users can NOT access endpoints that Admins would be able to access).

I'll be open sourcing more modules in the future so keep a look out!

And hopefully soon after that I'll actually finish the various mobile apps I've been working on.

Cheers!

Harry

Re: Poker Mavens API wrapper for Node.js

Posted: Tue Jun 28, 2016 10:55 pm
by Kent Briggs
Very nice! :D

Re: Poker Mavens API wrapper for Node.js

Posted: Fri Jul 01, 2016 7:40 pm
by social
harrythree wrote:Hello all! I just published an NPM module that for the Poker Mavens API. The module is a lightweight promise based wrapper of the PM API.

https://www.npmjs.com/package/pokermavens

Feel free to download it and use it. If you find any bugs, it is open source, so pull requests are welcomed!

I've been using the module to build a Node.js REST API that adds oAuth 2 on top of the current PM API. This has allowed me to build a mobile app for Poker Mavens without needing to have the API password baked into the mobile app code. Instead it will exchange oAuth access tokens be able to use different endpoints. Having the Node.js server in the middle also allowed to have more access control of the PM API (eg Users can NOT access endpoints that Admins would be able to access).

I'll be open sourcing more modules in the future so keep a look out!

And hopefully soon after that I'll actually finish the various mobile apps I've been working on.

Cheers!

Harry
Thank you for your contribution!
Much appreciate the goals of your site.