Add mega api client support