See the example scorecard I generated for tonight's A's/Sox game, which as you can see, was won when Manny was hit by a pitch in the bottom of the 10th. And here's the input script.
I wanted to just have it fill out lineups etc. for me, so I could score by hand, but I figured I might as well flush out the rest of the API. As much as possible, the stats etc. are figured out for you, so you only have to do the minimal necessary to score a game.