Jump to content

Update Checker


Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...