barnjamin / dwolla Goto Github PK
View Code? Open in Web Editor NEWDwolla client
Dwolla client
Ben,
First off thank you very much for the awesome class!
I am new to Dwolla and their APIs, but I found your class to be the most impressive solution to help streamline functions within their platform.
I was attempting to follow your documentation today to test out your class, but I seem to be getting an error on the "redirect page"
Hoping you have the time to tell me what I did wrong utilizing your class.
First page to setup redirect:
[code]
$dwolla = new dwolla();
$url = $dwolla->auth_url();
header('Location: '.$url ) ;
[/code]
Second page (redirected page):
[code]
$dowlla = new dwolla();
$dwolla->get_oauth_token($_GET['code']);
[/code]
[error]
Fatal error: Call to a member function get_oauth_token() on a non-object in
[/error]
Hoping you can help... thanks in advance!
Ben,
Wanted to let you know in testing your class further. I found the "user" function to not work properly. I kept getting the error: (Invalid application credentials.) After taking a look at the "user" function I realized you were not passing the "options" as a parameter to the build_url function. I added the $params required for the users end-point and all is well now.
See the fix below:
[code]
//"accountinfofull" scope
function user($user=null){
$this->end_point = "rest/users";
if(!empty($user)) $this->end_point .= '/'.$user;
//quick fix
$params = $this->options;
$url = $this->build_url($params);
$result = $this->execute_query('GET', $url);
return $result;
}
[/code]
thanks again for putting this class together, it is great!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.