I updated my API from 1.3.0 to 1.5.0 in order to allow for contributed TCP’s. Every method that is related to 1.5.0 works except for being able to initialize the TCPContribution model. Code with error is below
code line:
tcpContributionModel = api.getInstallationAPIProvider().getInstallationAPI().getTCPContributionModel();
“The method getInstallationAPIProvider() is undefined for the type URCapAPI”
This would make sense if I was still using API 1.3.0, however, I must have successfully updated the API because every other location where I use API 1.5.0 is compiling properly. I looked at the references and according to the API documentation it is supposed to be possible to access the InstallationAPIProvider through the URCapAPI by using the getInstallationAPIProvider() method. Does anyone know what is going on here?