# Invite token bulk email API sample

**URL:** <https://meta.discourse.org/t/invite-token-bulk-email-api-sample/17186>\
**Category:** Feature\
**Tags:** rfc, spec\
**Created:** [3. Juli 2014 um 23:57 UTC](https://meta.discourse.org/t/invite-token-bulk-email-api-sample/17186 "2014-07-03T23:57:45Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevebaer/32/105244_2.png) [@stevebaer](https://meta.discourse.org/u/stevebaer)\
**Post date:** [15. Juli 2014 um 17:55 UTC](https://meta.discourse.org/t/invite-token-bulk-email-api-sample/17186/12 "2014-07-15T17:55:10Z")

</div>

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?

---

_[View the full topic](https://meta.discourse.org/t/invite-token-bulk-email-api-sample/17186)._
