Update ApiGenerator.php

Add v1.3 support