API call: listProjects

From Moneytrackin' help

Jump to: navigation, search

Returns a list with all the projects/accounts created by the user.


Arguments

login    - Username
password - Password MD5'ed


Example response

<?xml version='1.0' encoding='UTF-8'?>
<result code="done">
  <project id="">
     <name>Main Account</name>
     <balance>3455.14</balance>
     <htmlchar>€</htmlchar>
     <currency>EUR</currency>
     <balancem>3455.14</balancem>
  </project>
  <project id="4">
    <name>test project 1</name>
    <balance>-48.77</balance>     
    <htmlchar>$</htmlchar>
    <currency>USD</currency>
    <balancem>-61.73</balancem>
  </project>
  <project id="5">
    <name>test project 2</name>
    <balancem>1021.73</balancem>
    <htmlchar>€</htmlchar>
    <currency>EUR</currency>
    <balancem>1021.73</balancem>
    <perm>1</perm>
  </project>
</result>


name     - Project name
balance  - Project balance
htmlchar - The symbol for the project currency
currency - The project currency
balancem - Project balance converted to the user default currency
perm     - Project's permission (shared projects only). 0->read only  1-> read/write


Exceptions

In case of error a SOAP fault exception with the error description will be thrown

Personal tools