xml - Send request for bank transactions using Open Financial Exchange (ofx) with PHP -
i want learn how download bank transactions using open financial exchange (ofx) file format. send request website using php.
i have not found php examples of using ofx file format send request connect bank in order download bank transactions. have been able find examples of parsing data returned.
i have found websites www.ofxhome.com provide urls (and other bank information) connect banks. not know how send request bank using ofx file format.
for example, using information ofxhome.com link... http://www.ofxhome.com/index.php/institution/view/472 how can send request bank using ofx format , php? , how save ofx file returned may parse , use information returned?
many help!
update: found working example. looking for, ofx request using php. here link: http://www.ofxhome.com/ofxforum/viewtopic.php?id=47419
according ofx api documentation (http://www.ofxhome.com//api.txt) use xml.
you may want research following:
- curl grab data api http://php.net/manual/en/book.curl.php
- simplexml parse data returned http://php.net/manual/en/book.simplexml.php
- here's tutorial on parsing xml http://www.sitepoint.com/parsing-xml-with-simplexml/
in program, first step grabbing index of institutions (view source):
http://www.ofxhome.com/api.php?all=yes
then referencing id values step 1 in lookup query specific institution:
http://www.ofxhome.com/api.php?lookup=424
Comments
Post a Comment