1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-01 19:58:37 -04:00

Add command-line client

This commit is contained in:
2017-03-22 20:29:08 -04:00
parent 6491311dbc
commit 8d8ee0016d
10 changed files with 867 additions and 0 deletions

24
cmd/ofx/util.go Normal file
View File

@ -0,0 +1,24 @@
package main
import (
"github.com/aclindsa/ofxgo"
)
func NewRequest() (*ofxgo.Client, *ofxgo.Request) {
var client = ofxgo.Client{
AppId: appId,
AppVer: appVer,
SpecVersion: ofxVersion,
NoIndent: noIndentRequests,
}
var query ofxgo.Request
query.URL = serverURL
query.Signon.ClientUID = ofxgo.UID(clientUID)
query.Signon.UserId = ofxgo.String(username)
query.Signon.UserPass = ofxgo.String(password)
query.Signon.Org = ofxgo.String(org)
query.Signon.Fid = ofxgo.String(fid)
return &client, &query
}