Api calling

This can also be moved to a service object