Debian Codegraph @

ofxconnect/test

raw
1 #/bin/sh
2 #
3 # End-to-end test
4 #
5 # This will use libofx to create an OFX statement request, post it to your
6 # bank, and send the input back into libofx to display in a human readable
7 # way.
8 #
9 # Ultimately, I'll make ofxconnect itself POST the file using libcurl,
10 # but this will at least get us started.
11 #
12 # Parameters:
13 # $1 org
14 # $2 fid
15 # $3 bank
16 # $4 user
17 # $5 pass
18 # $6 acct
19 # $7 type
20 # $8 past
21 # $9 url
22 #
23 # See the ofxconnect help for explanation of parameters 1-8. 9 is the URL of your OFX server
24 #
25 rm -f out
26 ./ofxconnect -s --org=$1 --fid=$2 --bank=$3 --user=$4 --pass=$5 --acct=$6 --type=$7 --past=$8 | ./postofx.py $9 > out && ../ofxdump/ofxdump out