Skip to content

Sample usages for various client technologies to connect to and display info from the Digital Scout API

License

Notifications You must be signed in to change notification settings

jon-adams/ds-hsgc-api-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Digital Scout API Client Usage

Sample/example code for how to access the Digital Scout (formerly HSGC or GameCenter) API and to display the resulting box scores.

License

This code is released under the MIT license. But keep in mind, that is for the source code in this repository and its use and distribution. However, this code doesn't do much without access to the Digital Scout API and data. Access to that API falls under separate agreements per the terms of use at www.digitalscout.com and through your written agreements with Digital Scout, LLC. Contact support@digitalscout.com with questions or for requesting access to the API.

Usage

node.js

An API client that can be used in a node.js site/application.

  1. Requires: nodejs, npm
    • An appropriate version of npm comes in the nodejs install
    • On Windows, you may need to re-log or restart after installation for your PATH environment variable to be updated for your console sessions
  2. Go to the node directory in your local copy of the repository
  3. Run npm install
  4. Edit app.js to include your API username and password
  5. node app.js

C#

An API client that can be used in a C# site/application.

  1. Requires: Visual Studio 2012+
  2. Open ApiClient.sln
  3. Edit Username and Password at the top of program.cs with the credentials supplied to you for the API
  4. Build and Run the application

Widgets

To display the resulting box score retrieved from the API, style as desired.

Or, use the provided widgets. Drop them in an IFRAME in an existing web site for display of a Digital Scout box score. (Remember, a separate data license is required for use of the widgets.)

See the /widgets directory for more information.

About

Sample usages for various client technologies to connect to and display info from the Digital Scout API

Resources

License

Stars

Watchers

Forks