Permalink
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
nanek committed Jul 17, 2012
0 parents commit 32152cd28ce34a61cd9d775bffb4cac712ab43df
Showing with 473 additions and 0 deletions.
  1. +131 −0 index.html
  2. +17 −0 javascripts/scale.fix.js
  3. +1 −0 params.json
  4. +69 −0 stylesheets/pygment_trac.css
  5. +255 −0 stylesheets/styles.css
@@ -0,0 +1,131 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <title>node-dwolla by nanek</title>
+
+ <link rel="stylesheet" href="stylesheets/styles.css">
+ <link rel="stylesheet" href="stylesheets/pygment_trac.css">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <!--[if lt IE 9]>
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ </head>
+ <body>
+ <div class="wrapper">
+ <header>
+ <h1>node-dwolla</h1>
+ <p>Dwolla API client for node.js</p>
+
+ <p class="view"><a href="https://github.com/nanek/node-dwolla">View the Project on GitHub <small>nanek/node-dwolla</small></a></p>
+
+
+ <ul>
+ <li><a href="https://github.com/nanek/node-dwolla/zipball/master">Download <strong>ZIP File</strong></a></li>
+ <li><a href="https://github.com/nanek/node-dwolla/tarball/master">Download <strong>TAR Ball</strong></a></li>
+ <li><a href="https://github.com/nanek/node-dwolla">View On <strong>GitHub</strong></a></li>
+ </ul>
+ </header>
+ <section>
+ <h1>Dwolla API for node.js</h1>
+
+<p><a href="https://www.dwolla.com/developers">Dwolla Developers</a></p>
+
+<h2>Methods</h2>
+
+<p>Requires your Dwolla application client_id and client_secret.</p>
+
+<ul>
+<li>basicAccountInfo(client_id, client_secret, id, callback)</li>
+<li>nearby(client_id, client_secret, lat, lon, [, params], callback)</li>
+<li>register(client_id, client_secret, userInfo, callback)</li>
+</ul><p>Requires a valid user OAuth2 token. Note tokens do not expire and may be
+reused.</p>
+
+<ul>
+<li>fullAccountInfo(oauth_token, callback)</li>
+<li>balance(oauth_token, callback)</li>
+<li>contacts(oauth_token[, params], callback)</li>
+<li>transactions(oauth_token[, params], callback)</li>
+<li>transactionById(oauth_token, id, callback)</li>
+<li>transactionsStats(oauth_token[, params], callback)</li>
+<li>send(oauth_token, pin, destinationId, amount[, params], callback)</li>
+<li>request(oauth_token, pin, sourceId, amount[, params], callback)</li>
+<li>fundingSources(oauth_token, callback)</li>
+<li>fundingSourceById(oauth_token, id, callback)</li>
+</ul><p>All optional parameters are passed in as an optional object before the callback.</p>
+
+<h3>How to obtain a Dwolla OAuth2 token</h3>
+
+<p>To authenticate a user, follow the examples from one of the following modules.</p>
+
+<h4>everyauth</h4>
+
+<p><a href="http://everyauth.com/">everyauth</a> is an authentication and authorization module for your node.js Connect and Express apps. See <a href="http://everyauth.com/#other-modules/dwolla-oauth2">http://everyauth.com/#other-modules/dwolla-oauth2</a></p>
+
+<h4>passport-dwolla</h4>
+
+<p><a href="http://passportjs.org/">Passport</a> is authentication middleware for Node.js, popular for being lightweight, modular, and flexible. A strategy for authenticating with Dwolla, along with an example, is available in the <a href="https://github.com/jaredhanson/passport-dwolla">passport-dwolla</a> module.</p>
+
+<h4>Dwolla Developer Site</h4>
+
+<p>The Dwolla <a href="http://developers.dwolla.com/dev/token">Generate Token</a> tool allows you
+create a valid OAuth token for testing purposes.</p>
+
+<h2>Installation</h2>
+
+<pre><code>$ npm install dwolla
+</code></pre>
+
+<h2>Example Usage</h2>
+
+<p>See more examples in the examples folder.</p>
+
+<pre><code>var dwolla = require('dwolla');
+
+// get oauth_token, be sure to set the proper scope
+// use oauth lib or everyauth to setup OAuth2
+// see everyauth for example Dwolla authentication
+var token = req.session.oauth_token;
+
+dwolla.fullAccountInfo(token, function(err, data) {
+ console.log("Full Account Info: " + data);
+});
+
+dwolla.transactions(token, function(err, data) {
+ console.log("Transactions: " + data);
+});
+
+var params = {};
+params.search = 'Ben';
+params.types = 'All';
+dwolla.contacts(token, params, function(err, data) {
+ console.log("Contacts: " + data);
+});
+</code></pre>
+
+<h2>Tests</h2>
+
+<p>Tests use mocha and should.js. Tests were made only for GET requests,
+as tests of POST requests would be processed just like real requests.
+Although working examples of each POST request can be found in the
+examples folder.</p>
+
+<pre><code>$ npm test
+</code></pre>
+
+<p>or</p>
+
+<pre><code>$ mocha
+</code></pre>
+ </section>
+ <footer>
+ <p>This project is maintained by <a href="https://github.com/nanek">nanek</a></p>
+ <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
+ </footer>
+ </div>
+ <script src="javascripts/scale.fix.js"></script>
+
+ </body>
+</html>
@@ -0,0 +1,17 @@
+var metas = document.getElementsByTagName('meta');
+var i;
+if (navigator.userAgent.match(/iPhone/i)) {
+ for (i=0; i<metas.length; i++) {
+ if (metas[i].name == "viewport") {
+ metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
+ }
+ }
+ document.addEventListener("gesturestart", gestureStart, false);
+}
+function gestureStart() {
+ for (i=0; i<metas.length; i++) {
+ if (metas[i].name == "viewport") {
+ metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
+ }
+ }
+}
@@ -0,0 +1 @@
+{"note":"Don't delete this file! It's used internally to help with page regeneration.","name":"node-dwolla","tagline":"Dwolla API client for node.js","google":"","body":"# Dwolla API for node.js\r\n[Dwolla Developers](https://www.dwolla.com/developers)\r\n\r\n## Methods\r\n\r\nRequires your Dwolla application client_id and client_secret.\r\n\r\n * basicAccountInfo(client_id, client_secret, id, callback)\r\n * nearby(client_id, client_secret, lat, lon, [, params], callback)\r\n * register(client_id, client_secret, userInfo, callback)\r\n\r\nRequires a valid user OAuth2 token. Note tokens do not expire and may be\r\nreused.\r\n\r\n * fullAccountInfo(oauth_token, callback)\r\n * balance(oauth_token, callback)\r\n * contacts(oauth_token[, params], callback)\r\n * transactions(oauth_token[, params], callback)\r\n * transactionById(oauth_token, id, callback)\r\n * transactionsStats(oauth_token[, params], callback)\r\n * send(oauth_token, pin, destinationId, amount[, params], callback)\r\n * request(oauth_token, pin, sourceId, amount[, params], callback)\r\n * fundingSources(oauth_token, callback)\r\n * fundingSourceById(oauth_token, id, callback)\r\n\r\nAll optional parameters are passed in as an optional object before the callback.\r\n\r\n### How to obtain a Dwolla OAuth2 token\r\n\r\nTo authenticate a user, follow the examples from one of the following modules.\r\n\r\n#### everyauth\r\n\r\n[everyauth](http://everyauth.com/) is an authentication and authorization module for your node.js Connect and Express apps. See http://everyauth.com/#other-modules/dwolla-oauth2\r\n\r\n#### passport-dwolla\r\n\r\n[Passport](http://passportjs.org/) is authentication middleware for Node.js, popular for being lightweight, modular, and flexible. A strategy for authenticating with Dwolla, along with an example, is available in the [passport-dwolla](https://github.com/jaredhanson/passport-dwolla) module.\r\n\r\n#### Dwolla Developer Site\r\n\r\nThe Dwolla [Generate Token](http://developers.dwolla.com/dev/token) tool allows you\r\ncreate a valid OAuth token for testing purposes.\r\n\r\n## Installation\r\n\r\n $ npm install dwolla\r\n\r\n## Example Usage\r\nSee more examples in the examples folder.\r\n\r\n var dwolla = require('dwolla');\r\n\r\n // get oauth_token, be sure to set the proper scope\r\n // use oauth lib or everyauth to setup OAuth2\r\n // see everyauth for example Dwolla authentication\r\n var token = req.session.oauth_token;\r\n\r\n dwolla.fullAccountInfo(token, function(err, data) {\r\n console.log(\"Full Account Info: \" + data);\r\n });\r\n\r\n dwolla.transactions(token, function(err, data) {\r\n console.log(\"Transactions: \" + data);\r\n });\r\n\r\n var params = {};\r\n params.search = 'Ben';\r\n params.types = 'All';\r\n dwolla.contacts(token, params, function(err, data) {\r\n console.log(\"Contacts: \" + data);\r\n });\r\n\r\n## Tests\r\nTests use mocha and should.js. Tests were made only for GET requests,\r\nas tests of POST requests would be processed just like real requests.\r\nAlthough working examples of each POST request can be found in the\r\nexamples folder.\r\n\r\n $ npm test\r\n\r\nor\r\n\r\n $ mocha\r\n"}
@@ -0,0 +1,69 @@
+.highlight { background: #ffffff; }
+.highlight .c { color: #999988; font-style: italic } /* Comment */
+.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.highlight .k { font-weight: bold } /* Keyword */
+.highlight .o { font-weight: bold } /* Operator */
+.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
+.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #aa0000 } /* Generic.Error */
+.highlight .gh { color: #999999 } /* Generic.Heading */
+.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #555555 } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
+.highlight .gt { color: #aa0000 } /* Generic.Traceback */
+.highlight .kc { font-weight: bold } /* Keyword.Constant */
+.highlight .kd { font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #009999 } /* Literal.Number */
+.highlight .s { color: #d14 } /* Literal.String */
+.highlight .na { color: #008080 } /* Name.Attribute */
+.highlight .nb { color: #0086B3 } /* Name.Builtin */
+.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
+.highlight .no { color: #008080 } /* Name.Constant */
+.highlight .ni { color: #800080 } /* Name.Entity */
+.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
+.highlight .nn { color: #555555 } /* Name.Namespace */
+.highlight .nt { color: #000080 } /* Name.Tag */
+.highlight .nv { color: #008080 } /* Name.Variable */
+.highlight .ow { font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #009999 } /* Literal.Number.Float */
+.highlight .mh { color: #009999 } /* Literal.Number.Hex */
+.highlight .mi { color: #009999 } /* Literal.Number.Integer */
+.highlight .mo { color: #009999 } /* Literal.Number.Oct */
+.highlight .sb { color: #d14 } /* Literal.String.Backtick */
+.highlight .sc { color: #d14 } /* Literal.String.Char */
+.highlight .sd { color: #d14 } /* Literal.String.Doc */
+.highlight .s2 { color: #d14 } /* Literal.String.Double */
+.highlight .se { color: #d14 } /* Literal.String.Escape */
+.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
+.highlight .si { color: #d14 } /* Literal.String.Interpol */
+.highlight .sx { color: #d14 } /* Literal.String.Other */
+.highlight .sr { color: #009926 } /* Literal.String.Regex */
+.highlight .s1 { color: #d14 } /* Literal.String.Single */
+.highlight .ss { color: #990073 } /* Literal.String.Symbol */
+.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #008080 } /* Name.Variable.Class */
+.highlight .vg { color: #008080 } /* Name.Variable.Global */
+.highlight .vi { color: #008080 } /* Name.Variable.Instance */
+.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
+
+.type-csharp .highlight .k { color: #0000FF }
+.type-csharp .highlight .kt { color: #0000FF }
+.type-csharp .highlight .nf { color: #000000; font-weight: normal }
+.type-csharp .highlight .nc { color: #2B91AF }
+.type-csharp .highlight .nn { color: #000000 }
+.type-csharp .highlight .s { color: #A31515 }
+.type-csharp .highlight .sc { color: #A31515 }
Oops, something went wrong.

0 comments on commit 32152cd

Please sign in to comment.