Implemented basic api communication and connection