-
Notifications
You must be signed in to change notification settings - Fork 0
Basic Walkthrough
danmux edited this page Feb 6, 2012
·
7 revisions
There are two basic steps to getting data out of money toolkit...
- An Authentication POST
- A data read GET
For example...
- send a post to...
https://www.moneytoolkit.com/pub/authenticate
- with the body...
u={username}&p={password}
e.g.
u=danm&p=pass
- Dont forget the the header...
Content-Type: application/x-www-form-urlencoded
- You will get a response like this....
{"message": "authenticated", "token": "danmeWyPfuPj"}
Grab the token and save for later...
- send a GET to...
https://www.moneytoolkit.com/pub/person/{username}?tkn={token}
(where username is the user you authenticated and got the token, as above) e.g.
https://www.moneytoolkit.com/pub/person/hairyman?tkn=htKTfgT096FFg
- You will get a response like this....
{
"status": 1,
"bcount": 0,
"first_name": null,
"last_name": null,
"oldemail": null,
"xcount": 0,
"regip": "100.99.99.99",
"lastip": "100.99.99.99",
"regdate": "2011-12-02",
"lastlogon": "2012-01-22T16:34:14.401858",
"acount": 6,
"lastchange": "2012-01-22T16:34:14.402463",
"email": "private",
"accounts": [
{
"balance": -60023,
"bankname": "www.lloydstsb.com",
"xcount": 25,
"baltype": "calculated",
"hidden": 0,
"type": "Cheque",
"status": 1,
"maxviewed": 0,
"which": "negative",
"synchdate": "2011-12-02T11:42:50.678259",
"synchbal": 44437,
"synched": true,
"synchbalwhich": "positive",
"keyname": "a1",
"display": "Lloyds Platinum"
},
{
"balance": 20096,
"bankname": "www.lloydstsb.com",
"xcount": 25,
"baltype": "calculated",
"hidden": 0,
"type": "Cheque",
"status": 1,
"maxviewed": 0,
"which": "positive",
"synchdate": "2011-12-02T11:42:51.813118",
"synchbal": 19102,
"synched": true,
"synchbalwhich": "positive",
"keyname": "a2",
"display": "Lloyds Online Saver"
}
],
"hidden": 0,
"totalxacts": 58,
"display": "HairyMan",
"keyname": "hairyman"
}
From here you can explore more URL's back on the Home page