Save Score Hole-By-Hole
Developer API Home
Save a finished score with details hole by hole data.
When testing this with fake scores, be sure to mark them of type 4 (practice rounds).
URL: http://www.oobgolf.com/api/save_score_hbh.php
Sample Request: http://www.oobgolf.com/api/save_score_hbh.php?type=1&session=627e2&h1_score=5&h2_score=6&h3_score=6&h4_score=5&h5_score=6&h6_score=6&h7_score=4&h8_score=6&h9_score=6&tee_id=14&nine=1&dev=YOUR-KEY-HERE
When testing this with fake scores, be sure to mark them of type 4 (practice rounds).
URL: http://www.oobgolf.com/api/save_score_hbh.php
Sample Request: http://www.oobgolf.com/api/save_score_hbh.php?type=1&session=627e2&h1_score=5&h2_score=6&h3_score=6&h4_score=5&h5_score=6&h6_score=6&h7_score=4&h8_score=6&h9_score=6&tee_id=14&nine=1&dev=YOUR-KEY-HERE
| Required Parameters | |
| hX_score | score provided for each hole, X has to be replaced with integer 1-18 of each hole played. |
| session | session id for user to save score against. |
| dev | developer api key |
| Optional Parameters | |
| tee_id | id of tee played, if this parameter is not provided then course name is required |
| name | name of the course being played, if this parameter is not provided then the id of the tee is required |
| id | id of score to edit (leave blank for new scores) |
| play_time | unix time stamp (seconds since epoch) of time round played |
| hX_putts | putts recorded for hole, X has to be replaced with integer 1-18 of each hole played. |
| hX_penalties | # of stroke penalites recorded for hole, X has to be replaced with integer 1-18 of each hole played. |
| hX_sand_shots | # of sand shots recorded for hole, X has to be replaced with integer 1-18 of each hole played. |
| hX_tee_club | club used off of tee, possible valuse: dr, 3w, 4w, 5w, 7w, hy, 2i, 3i, 4i, 5i, 6i, 7i, 8i, 9i, pw, gw, sw, lw |
| hX_tee_dist | integer distance in yards of first stroke off tee |
| hX_fairway | Don't provide this unless its tracked, otherwise provide: 0) Missed 1) Hit 2) Missed Right 3) Missed Left |
| nine | 0 if playing 18 holes, 1 if playing only 9 |
| back | 1 if playing 9 holes starting on the back |
| type | integer type of score entered, options include: 1) Standard - Rules of Golf followed on a USGA rated course during it's active season 2) Scramble - 2-4 player best ball used (doesn't affect handicap) 3) Tournament - Official tournament where you played your own ball 4) Practice Rules of Golf were not followed for the majority of the holes, such as multiple balls played (doesn't affect handicap) 5) Out of Season - Score played on a course that has an inactive season |
| tee_uid | Developer's UNIQUE id of the tee. This is stored by oobgolf and used to find the best matching tee in our system. NOTE: this is unique across all tees not just tee for a course, therefore if you only have an id unique to the course concat that with the course_uid |
| course_uid | Developer's UNIQUE id of the course. This is stored by oobgolf and used to find the best matching course in our system. |
| city | City of the course being played. Used to find best matching tee for score, thus pointless if tee_id is provided. |
| state | State of the course being played (Two character for US states). Used to find best matching tee for score, thus pointless if tee_id is provided. |
| country | Two Character Code for the country of the course being played. Used to find best matching tee for score, thus pointless if tee_id is provided. |
| zipcode | Zipcode of the course being played (5 digit for US). Used to find best matching tee for score, thus pointless if tee_id is provided. |
| rating | USGA rating of the tee being played. Used to find best matching tee for score, thus pointless if tee_id is provided. |
| slope | USGA slope of the tee being played. Used to find best matching tee for score, thus pointless if tee_id is provided. |
Sample Response:
