npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pinnacle-sports

v1.2.0

Published

Pinnacle Sports API

Downloads

15

Readme

Pinnacle Sports API for Node.js

NPM Version NPM Downloads

A node module to use the Pinnacle Sports API https://www.pinnaclesports.com

API's documentation : http://www.pinnaclesports.com/en/api/manual

Installation

npm install pinnacle-sports

Usage

Creating a client

var pinnacle_sports = require('pinnacle-sports');

//you have to pass the login and password that you use to connect on the website.
//Pinnacle doesn't provide any api-key
var client = pinnacle_sports.createClient('username', 'password');

All the operations from the API are implemented :

  • get_sports
  • get_leagues
  • get_feed
  • get_fixtures
  • get_odds
  • get_parlay_odds
  • get_currencies
  • get_client_balance
  • place_bet
  • place_parlay_bet
  • get_line
  • get_parlay_line
  • get_bets
  • get_inrunning
  • get_translations

You use an operation like this :


//this example will request all soccer fixtures

var options = {
  sportid: 29
};

client.get_fixtures(options, function(error, result){
  console.log(error);
  console.log(result);
});

// you can also use it as a promise if you prefer
client.get_fixtures(options)
.then(function(result){
  console.log(result);
})
.catch(function(error){
  console.log(error);
});

for the list of possible options for each operation please see the documentation on the Pinnacle Sports website : http://www.pinnaclesports.com/en/api/manual