MyInfo

From MyBanco
Jump to: navigation, search

MyInfo is a network-aware Remote procedure call protocol encoded in JSON (JavaScript Object Notation).

MyInfo wraps around databases (currently only MySQL) to deliver information to front-ends information about anything in a secure and simplified fashion. MyBanco uses MyInfo to store and retrieve data about users, bank accounts, documents in the Customer Relations Management System and to also calculate past and present bank balances.

Example In

Array (
   [CARVER] => Array (
           [packets] => 3
           [api] => 1
           [appid] => 1
       )

   [packet:1] => Array (
           [plugin] => sessions
           [action] => getSession
           [data] => Array (
                   [user] => tim
                   [session] => 0afc6160ce7539d9564a02a440d881d7
               )
       )

   [packet:2] => Array (
           [plugin] => sessions
           [action] => userInfo
           [data] => 
       )

   [packet:3] => Array (
           [plugin] => bank
           [action] => listAccounts
           [data] => 
       )
)


Output from above exmple

Array (
   [CARVER] => Array (
           [packets] => 3
       )

   [packet:1] => Array (
           [plugin] => sessions
           [action] => getSession
           [session] => Array (   )
       )

   [packet:2] => Array (
           [plugin] => sessions
           [action] => userInfo
           [infoid] => 1
           [uid] => 1
           [isPrimrary] => 1
           [title] => Mr
           [firstName] => Tim
           [lastName] => Lastname
       )

   [packet:3] => Array (
           [plugin] => bank
           [action] => listAccounts
           [accounts] => Array (
                   [0] => Array (
                           [aid] => 1
                           [description] => My very first bank account
                           [currency] => 1
                           [cid] => 1
                           [curreny_short] => TDL
                           [curreny_long] => Test Dollars
                           [sign] => $
                           [canEdit] => 1
                           [balance] => 4,765.00
                       )
               )
           [self-creation] => 
       )
)

NOTE: this is the print_r() output from the RPC output from MyBanco. The actual output is smaller, because all data is sent and received with JSON's data interchange format.

Personal tools