MadMikeyB Posted March 25, 2015 Posted March 25, 2015 Reading this http://community.invisionpower.com/4docs/advanced-usage/development/update-checking-r86/Is there any way for the suite to post in the App ID as a param as well? Just so you don't have to have updateCheckBlog.php and updateCheckDownloads.php (for example)Ideally, personally as a developer I'd like updateCheck.php?version=100000&app=blog (using IPS products as examples)(When I say App ID - I mean the lowercase application directory perhaps)I know it's a niche request but I wondered if it's something I've overlooked or if it's something which could be added?
Daniel F Posted March 25, 2015 Posted March 25, 2015 You could use http://www.example.com/myapp/updateCheck.php?appid=foo as url
MadMikeyB Posted March 25, 2015 Author Posted March 25, 2015 and the param will be passed as an &version not an ?version ?
Mark Posted March 26, 2015 Posted March 26, 2015 Of course Pretty much all URL handling in IPS4 is handled by the \IPS\Http\Url class which is super-clever at figuring things like that out. The code to call the URL you specify is: $url = \IPS\Http\Url::external( $row['url'] )->setQueryString( 'version', $row['current'] ); $response = $url->request()->get()->decodeJson(); In applications/core/tasks/updatecheck.php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.