Complete pmapiClient.js.