Added generateAccount method which creates an API account object