|
|
|
@ -572,6 +572,7 @@ dogapi.client.request("GET", "/url/path", {}, function(err, |
|
|
|
<h2 class="bg-primary" style="text-indent:1rem">dogapi</h2></div> |
|
|
|
<ul class="nav nav-pills"> |
|
|
|
<li role"presentation"><a href="#dogapi-initialize">initialize</a></li> |
|
|
|
<li role"presentation"><a href="#dogapi-now">now</a></li> |
|
|
|
</ul> |
|
|
|
<div class="function row" id="dogapi-initialize"> |
|
|
|
<h3 class="bg-info" style="text-indent:.5rem;padding:.5rem;margin-top:.5rem">initialize(options)</h3> |
|
|
|
@ -601,6 +602,19 @@ dogapi.event.create(...); |
|
|
|
</code></pre> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="function row" id="dogapi-now"> |
|
|
|
<h3 class="bg-info" style="text-indent:.5rem;padding:.5rem;margin-top:.5rem">now()</h3> |
|
|
|
<div class="col-md-6"> |
|
|
|
<p>get the current POSIX timestamp</p> |
|
|
|
</div> |
|
|
|
<div class="col-md-6"> |
|
|
|
<pre><code class="lang-javascript">var dogapi = require("dogapi"); |
|
|
|
dogapi.now(); |
|
|
|
// this is the same as |
|
|
|
parseInt(new Date().getTime() / 1000); |
|
|
|
</code></pre> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
<a href="https://github.com/brettlangdon/node-dogapi"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a></body></html> |