Invite token bulk email API sample

I just attempted to run the disposable_invite_tokens.rb example with my settings (site, username, apikey) and get the following error

C:\dev\github\discourse\discourse_api\examples>ruby disposable_invite_tokens.rb

disposable_invite_tokens.rb:12:in <main>': undefined method body’ for #<Hash:0
x2846be0> (NoMethodError)

I would normally link this to my personal ignorance about ruby, but it looks like much of the script ran and a “NoMethodError” may be signifying that no method on the server exists (wild ass guessing now.) Can you tell if I’m running the script incorrectly or if our discourse server has not been fully deployed with these changes yet?