March 25, 2015 in Feedback
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?
You could use http://www.example.com/myapp/updateCheck.php?appid=foo as url
and the param will be passed as an &version not an ?version ?
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();
This topic is now archived and is closed to further replies.
Started 6 hours ago
Started April 24, 2015
Started September 9, 2016