Jump to content

Community

Update Checker


MadMikeyB
 Share

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

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy