Added support for v3 of the rest api.

Yea!