Implemented the basic riot-api communication.