Does any has a script or small piece of code to automate language conversion using Google language conversion API?

I need to automated this to convert from English --> Vietnamese.