Esempio n. 1
0
<?php

/**
 *      _               _ _
 *   __| |_      _____ | | | __ _
 *  / _` \ \ /\ / / _ \| | |/ _` |
 * | (_| |\ V  V / (_) | | | (_| |
 *  \__,_| \_/\_/ \___/|_|_|\__,_|
 * An official Guzzle based wrapper for the Dwolla API.
 * The following is a quick-start example for the OAuth class,
 * which encapsulates methods for all access-token related endpoints.
 */
// We need the OAuth class in order to do anything
require '../lib/oauth.php';
$OAuth = new Dwolla\OAuth();
/**
 * Step 1: Generate an OAuth permissions page URL
 * with your application's default set redirect.
 *
 * http://requestb.in is a service that catches
 * redirect responses. Go over to their URL and make
 * your own so that you may conveniently catch the
 * redirect parameters.
 *
 * You can view your responses at:
 * http://requestb.in/[some_id]?inspect
 *
 * If you're feeling dangerous, feel free to simply use
 * http://google.com and manually parse the parameters
 * out yourself. The choice remains yours.
 */
Esempio n. 2
0
<?php

/**
 *      _               _ _
 *   __| |_      _____ | | | __ _
 *  / _` \ \ /\ / / _ \| | |/ _` |
 * | (_| |\ V  V / (_) | | | (_| |
 *  \__,_| \_/\_/ \___/|_|_|\__,_|
 * An official Guzzle based wrapper for the Dwolla API.
 * The following is a quick-start example for the OAuth class,
 * which encapsulates methods for all access-token related endpoints.
 */
// We need the OAuth class in order to do anything
require '../vendor/autoload.php';
$OAuth = new Dwolla\OAuth();
$OAuth->settings->sandbox = false;
$OAuth->settings->debug = true;
$OAuth->settings->client_id = "zbDwIC0dWCVU7cQtfvGwVwVjvxwQfjaTgkVi+FZOmKqPBzK5JG";
$OAuth->settings->client_secret = "ckmgwJz9h/fZ09unyXxpupCyrmAMe0bnUiMHF/0+SDaR9RHe99";
/**
 * Step 1: Generate an OAuth permissions page URL
 * with your application's default set redirect.
 *
 * http://requestb.in is a service that catches
 * redirect responses. Go over to their URL and make
 * your own so that you may conveniently catch the
 * redirect parameters.
 *
 * You can view your responses at:
 * http://requestb.in/[some_id]?inspect
 *