tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/70-setting-the-api-token-per-requestLighthouse: Discussion 2011-04-07T05:34:55Ztag:help.lighthouseapp.com,2008-09-20:Comment/462632009-01-23T20:58:45Z2009-01-23T23:40:13ZSetting the API token per request<div><p>You can append the token to the url using the _token param.</p>
<p>So you could do:</p>
<pre>
<code>Project.find(:all, :params => {:_token => "YOUR TOKEN"})</code>
</pre>
<p>If you're using the methods defined in the api like 'tickets',
you can exclude the outer :params hash.</p>
<pre>
<code>@project.tickets(:_token => "YOUR TOKEN")</code>
</pre>
<p>I believe this should work, let me know if it doesn't.</p></div>Justin Palmertag:help.lighthouseapp.com,2008-09-20:Comment/462632009-01-23T21:01:40Z2009-01-23T21:01:40ZSetting the API token per request<div><p>It works! Thanks, Justin.</p></div>peeja