Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
commit 32152cd28ce34a61cd9d775bffb4cac712ab43df 0 parents
@nanek authored
131 index.html
@@ -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>
17 javascripts/scale.fix.js
@@ -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";
+ }
+ }
+}
1  params.json
@@ -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"}
69 stylesheets/pygment_trac.css
@@ -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 }
255 stylesheets/styles.css
@@ -0,0 +1,255 @@
+@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
+
+body {
+ padding:50px;
+ font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
+ color:#777;
+ font-weight:300;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color:#222;
+ margin:0 0 20px;
+}
+
+p, ul, ol, table, pre, dl {
+ margin:0 0 20px;
+}
+
+h1, h2, h3 {
+ line-height:1.1;
+}
+
+h1 {
+ font-size:28px;
+}
+
+h2 {
+ color:#393939;
+}
+
+h3, h4, h5, h6 {
+ color:#494949;
+}
+
+a {
+ color:#39c;
+ font-weight:400;
+ text-decoration:none;
+}
+
+a small {
+ font-size:11px;
+ color:#777;
+ margin-top:-0.6em;
+ display:block;
+}
+
+.wrapper {
+ width:860px;
+ margin:0 auto;
+}
+
+blockquote {
+ border-left:1px solid #e5e5e5;
+ margin:0;
+ padding:0 0 0 20px;
+ font-style:italic;
+}
+
+code, pre {
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+ color:#333;
+ font-size:12px;
+}
+
+pre {
+ padding:8px 15px;
+ background: #f8f8f8;
+ border-radius:5px;
+ border:1px solid #e5e5e5;
+ overflow-x: auto;
+}
+
+table {
+ width:100%;
+ border-collapse:collapse;
+}
+
+th, td {
+ text-align:left;
+ padding:5px 10px;
+ border-bottom:1px solid #e5e5e5;
+}
+
+dt {
+ color:#444;
+ font-weight:700;
+}
+
+th {
+ color:#444;
+}
+
+img {
+ max-width:100%;
+}
+
+header {
+ width:270px;
+ float:left;
+ position:fixed;
+}
+
+header ul {
+ list-style:none;
+ height:40px;
+
+ padding:0;
+
+ background: #eee;
+ background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
+ background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+
+ border-radius:5px;
+ border:1px solid #d2d2d2;
+ box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
+ width:270px;
+}
+
+header li {
+ width:89px;
+ float:left;
+ border-right:1px solid #d2d2d2;
+ height:40px;
+}
+
+header ul a {
+ line-height:1;
+ font-size:11px;
+ color:#999;
+ display:block;
+ text-align:center;
+ padding-top:6px;
+ height:40px;
+}
+
+strong {
+ color:#222;
+ font-weight:700;
+}
+
+header ul li + li {
+ width:88px;
+ border-left:1px solid #fff;
+}
+
+header ul li + li + li {
+ border-right:none;
+ width:89px;
+}
+
+header ul a strong {
+ font-size:14px;
+ display:block;
+ color:#222;
+}
+
+section {
+ width:500px;
+ float:right;
+ padding-bottom:50px;
+}
+
+small {
+ font-size:11px;
+}
+
+hr {
+ border:0;
+ background:#e5e5e5;
+ height:1px;
+ margin:0 0 20px;
+}
+
+footer {
+ width:270px;
+ float:left;
+ position:fixed;
+ bottom:50px;
+}
+
+@media print, screen and (max-width: 960px) {
+
+ div.wrapper {
+ width:auto;
+ margin:0;
+ }
+
+ header, section, footer {
+ float:none;
+ position:static;
+ width:auto;
+ }
+
+ header {
+ padding-right:320px;
+ }
+
+ section {
+ border:1px solid #e5e5e5;
+ border-width:1px 0;
+ padding:20px 0;
+ margin:0 0 20px;
+ }
+
+ header a small {
+ display:inline;
+ }
+
+ header ul {
+ position:absolute;
+ right:50px;
+ top:52px;
+ }
+}
+
+@media print, screen and (max-width: 720px) {
+ body {
+ word-wrap:break-word;
+ }
+
+ header {
+ padding:0;
+ }
+
+ header ul, header p.view {
+ position:static;
+ }
+
+ pre, code {
+ word-wrap:normal;
+ }
+}
+
+@media print, screen and (max-width: 480px) {
+ body {
+ padding:15px;
+ }
+
+ header ul {
+ display:none;
+ }
+}
+
+@media print {
+ body {
+ padding:0.4in;
+ font-size:12pt;
+ color:#444;
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.