Giter Site home page Giter Site logo

pdga_api's Introduction

PdgaApi

PDGA API Wrapper

Installation

Add this line to your application's Gemfile:

gem 'pdga_api'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install pdga_api

Starting steps

In order to use this you will need to initialize using your pdga username and password

Usage

Expected responses can all be found here https://www.pdga.com/dev/api/rest/v1/auth

There are 4 types of actions that this gem allows you to perform.

  1. Authentication
    1. Initialize @client = Pdga.new(username: "username goes here", password: "password goes here")
    2. connection status @client.connect
    3. logout @client.logout
  2. Player information which takes a hash of various search params that are listed on the PDGA site (default 10 returned with a max of 200)
    1. player search @client.players({ pdga_number: "15857" })
    2. player statistics search @client.player_statistics({ pdga_number: "15857", year: "2022" })
  3. Event information which takes a hash of various search params that are listed on the PDGA site (default 10 returned with a max of 200)
    1. event search @client.events({ tournament_id: "47877" })
  4. Course information which takes a hash of various search params that are listed on the PDGA site (default 10 returned with a max of 200)
    1. course search @client.courses({ course_id: "2146" })

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the PdgaApi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Todos

  1. Mock the tests!
  2. Make readme pretty and thorough

pdga_api's People

Contributors

relia1 avatar

Watchers

 avatar

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.