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
Poker Mavens API wrapper for Node.js
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Poker Mavens API wrapper for Node.js
Very nice!
Re: Poker Mavens API wrapper for Node.js
Thank you for your contribution!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
Much appreciate the goals of your site.