Update from v1 to v2

It is asking to update to v2 by 31st November, but has no python code except cURL syntax on documentation website