2017-03-22 20:29:08 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aclindsa/ofxgo"
|
|
|
|
)
|
|
|
|
|
2017-04-16 20:50:06 -04:00
|
|
|
func newRequest() (*ofxgo.Client, *ofxgo.Request) {
|
2017-03-22 20:29:08 -04:00
|
|
|
var client = ofxgo.Client{
|
2017-04-12 21:40:42 -04:00
|
|
|
AppID: appID,
|
2017-03-22 20:29:08 -04:00
|
|
|
AppVer: appVer,
|
|
|
|
SpecVersion: ofxVersion,
|
|
|
|
NoIndent: noIndentRequests,
|
|
|
|
}
|
|
|
|
|
|
|
|
var query ofxgo.Request
|
|
|
|
query.URL = serverURL
|
|
|
|
query.Signon.ClientUID = ofxgo.UID(clientUID)
|
2017-04-12 21:40:42 -04:00
|
|
|
query.Signon.UserID = ofxgo.String(username)
|
2017-03-22 20:29:08 -04:00
|
|
|
query.Signon.UserPass = ofxgo.String(password)
|
|
|
|
query.Signon.Org = ofxgo.String(org)
|
|
|
|
query.Signon.Fid = ofxgo.String(fid)
|
|
|
|
|
|
|
|
return &client, &query
|
|
|
|
}
|