Updates per recent variants api changes.

Also updated the API dependency.