Added api v2 support

Did you add this by mistake?