After digging a bit into the source code, it looks like I can do the following:
var check = new global::Umbraco.Web.org.umbraco.update.CheckForUpgrade();
var result = check.CheckUpgrade(UmbracoVersion.Current.Major,
UmbracoVersion.Current.Minor,
UmbracoVersion.Current.Build,
UmbracoVersion.CurrentComment);
Is there a public API to check what the lastest released version is?
Is there some public API that could be used to get the latest version that is available?
E.g. I want to call umbraco.com/api/whatIsTheNewestVersion and get a response that will return the newest version number that is available.
Hi Martin
Look at this service
http://update.umbraco.org/checkforupgrade.asmx
Umbraco source code: https://github.com/umbraco/Umbraco-CMS/search?utf8=%E2%9C%93&q=umbracoorgumbracoupdateCheckForUpgrade&type=
Thanks,
Alex
After digging a bit into the source code, it looks like I can do the following:
Link for reference:
https://github.com/umbraco/Umbraco-CMS/blob/5397f2c53acbdeb0805e1fe39fda938f571d295a/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/CheckForUpgrade.asmx.cs
Exactly!
Note that this method will disappear at some point. Might be easier to check NuGet instead. Something like this: https://stackoverflow.com/questions/26677801/how-to-get-nuget-package-version-programmatically
is working on a reply...