1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-10-30 05:20:05 -04:00
ofxgo/cmd/ofx/util.go
2017-04-16 20:50:06 -04:00

25 lines
536 B
Go

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
}