tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/1100-check-if-using-free-planLighthouse: Discussion 2013-04-24T19:03:27Ztag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-10T22:12:44Z2013-04-10T22:12:44ZCheck if using Free plan<div><p>Is there a way to check if a domain is using the Free plan
through the API?</p>
<p>The free plan limits features, such as archiving, and we want to
make sure those features aren't enabled if the plan doesn't allow
them.</p></div>Matthew Hendersontag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-10T23:57:05Z2013-04-10T23:57:05ZCheck if using Free plan<div><p>Hi Matthew,</p>
<p>Which account is this for?</p>
<p>Thanks,<br>
Brandi</p></div>branditag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-10T23:59:37Z2013-04-10T23:59:37ZCheck if using Free plan<div><p>We need to be able to check this for any account.</p>
<p>We are trying to make it so our client app does not allow
accounts on the free plan to do things like archive projects</p></div>Matthew Hendersontag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-11T00:12:24Z2013-04-11T00:12:24ZCheck if using Free plan<div><p>Hmm. Good question. Let me see/add that for you.</p></div>Tiger Teamtag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-11T00:38:08Z2013-04-11T00:38:08ZCheck if using Free plan<div><p>ok, I'll add that to the API. It'll be at /plans.xml and will
look like this</p>
<pre>
<code class="xml"><hash>
<plan>Friend</plan>
<free type="boolean">true</free>
<users type="integer">0</users>
<projects type="integer">0</projects>
<storage type="integer">52428800000</storage>
</hash></code>
</pre>
<p>I'll update this discussion when we deploy it.</p></div>Tiger Teamtag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-12T00:25:11Z2013-04-12T00:25:11ZCheck if using Free plan<div><p>Hi Matthew,</p>
<p>We just deployed this. You can now query <code>/plan.xml</code>
(no <code>s</code>). Be aware that you will need a token that
identifies you as the account owner, or login/password of the
account owner, as he/she is the only one who can access this
information.</p>
<p>Let me know how it goes.</p></div>Julientag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-17T17:19:46Z2013-04-17T17:19:46ZCheck if using Free plan<div><p>Hey Matthew,</p>
<p>Just wanted to check back on you to see if the solution we
implemented worked out for you.</p>
<p>Thanks!</p></div>Julientag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-22T17:01:33Z2013-04-22T17:01:33ZCheck if using Free plan<div><p>This helps except that the Free account supports two users and
one of those users isn't the account owner so there still seems to
be no way using the API to know that certain features should be
disabled for the non-account-owner-using-a-free-account</p></div>Matthew Hendersontag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-22T17:26:47Z2013-04-22T17:26:47ZCheck if using Free plan<div><p>The <code>/plan.xml</code> will only respond to an account
owner, so you can use that to know if you are an account owner or
not, but this also means that if you are a regular user, you can't
know which plan you are on.</p>
<p>How do your users authenticate: using a token, login/password?
Do they share a token or does each user has its own? I' trying to
see how we can provide with a scheme that gives you all the
information you need without leaking stuff we shouldn't.</p></div>Julientag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-22T17:43:48Z2013-04-22T17:43:48ZCheck if using Free plan<div><p>users login with their login/password.</p>
<p>We really don't care what the account plan is -- we just want to
know if the project can be archived or not.</p>
<p>The reason we want to disable the UI is that even on a free
account an archive call performed using the API will archive the
project -- which could lead to confusion.</p></div>Matthew Hendersontag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-23T17:11:36Z2013-04-23T17:11:36ZCheck if using Free plan<div><p>Hi Matthew,</p>
<p>As a first step, I fixed the API: if you try to set a project to
archived while on the free plan, you will now get an error back:
"Arcihved can't be set: you are on the Free plan".</p>
<p>I am still not sure what is the best way to let you know "in
advance", but that should help.</p></div>Julientag:help.lighthouseapp.com,2008-09-20:Comment/263389772013-04-24T19:03:15Z2013-04-24T19:03:15ZCheck if using Free plan<div><p>Thanks for your help. This is enough so that we no longer need
to worry about a user getting into an incorrect state.</p></div>Matthew Henderson