Client SDKs
Client SDKs
Client SDK Overview
Last Updated: March 16, 2026Client SDK Overview The DMSI Update Server provides ready-to-use client libraries for integrating auto-update support into your software. What Are the Client SDKs? Client SDKs are code files you add to your software product (not your WordPress site). They handle communication with the Update Server API so your software can: Check for available updates Display...
PHP SDK
Last Updated: March 16, 2026PHP SDK Platform-agnostic PHP class for communicating with the Update Server API. File sdk/php/class-dmsi-update-client.php Requirements PHP 7.4+ curl PHP extension Basic Usage require_once 'class-dmsi-update-client.php'; $client = new DMSI_Update_Client([ 'api_url' => 'https://yoursite.com', 'product_id' => 42, ]); // Check for an update $result = $client->check_update('XXXX-XXXX-XXXX-XXXX', '1.0.0', [ 'channel' => 'stable', ]); if ($result && $result['update_available']) { echo...
WordPress Plugin Updater SDK
Last Updated: March 16, 2026WordPress Plugin Updater SDK Integrate auto-updates into a WordPress plugin using the native WordPress update system. Files sdk/php/wordpress/class-dmsi-wp-plugin-updater.php sdk/php/examples/wordpress-plugin.php How It Works The DMSI_WP_Plugin_Updater class hooks into WordPress's built-in plugin update system. When WordPress checks for plugin updates, the updater queries your Update Server. If an update is available, WordPress shows the standard "update available"...
WordPress Theme Updater SDK
Last Updated: March 16, 2026WordPress Theme Updater SDK Integrate auto-updates into a WordPress theme using the native WordPress update system. Files sdk/php/wordpress/class-dmsi-wp-theme-updater.php sdk/php/examples/wordpress-theme.php How It Works Similar to the plugin updater, but hooks into WordPress's theme update system (pre_set_site_transient_update_themes). When WordPress checks for theme updates, the Update Server is queried. Available updates appear in the standard Themes screen. Basic...
WordPress License Management SDK
Last Updated: March 16, 2026WordPress License Management SDK Add a license key settings section to your WordPress plugin or theme. Files sdk/php/wordpress/class-dmsi-wp-license.php What It Does DMSI_WP_License provides: A settings section for customers to enter their license key Activate, deactivate, and validate buttons A status badge (active, grace, expired, invalid) Expiry date display Daily background validation via WordPress cron Basic...
Python SDK
Last Updated: March 16, 2026Python SDK Update client for Python applications using the requests library. Files sdk/python/dmsi_update_client.py sdk/python/examples/desktop-app-example.py Requirements Python 3.6+ requests library (pip install requests) Basic Usage from dmsi_update_client import DmsiUpdateClient client = DmsiUpdateClient( api_url='https://yoursite.com', product_id=42 ) # Check for update result = client.check_update( license_key='XXXX-XXXX-XXXX-XXXX', current_version='1.0.0', channel='stable' ) if result and result.get('update_available'): print(f"Update available: {result['version']}") download_url = result['download_url']...
C# / .NET SDK
Last Updated: March 16, 2026C# / .NET SDK Update client for .NET applications using HttpClient. Files sdk/csharp/DmsiUpdateClient.cs sdk/csharp/examples/WpfExample.cs Requirements .NET Framework 4.6+ or .NET Core 2.0+ System.Net.Http.HttpClient Newtonsoft.Json or System.Text.Json Basic Usage using DmsiUpdateServer; var client = new DmsiUpdateClient( apiUrl: "https://yoursite.com", productId: 42 ); // Check for update var result = await client.CheckUpdateAsync( licenseKey: "XXXX-XXXX-XXXX-XXXX", currentVersion: "1.0.0", channel: "stable"...
Integration Examples
Last Updated: March 16, 2026Integration Examples Practical integration patterns for common scenarios. Example 1: WordPress Plugin with License Management and Auto-Updates // In your plugin's main file define('MY_PLUGIN_VERSION', '1.0.0'); define('MY_PLUGIN_PRODUCT_ID', 42); require_once plugin_dir_path(__FILE__) . 'updater/class-dmsi-update-client.php'; require_once plugin_dir_path(__FILE__) . 'updater/class-dmsi-wp-plugin-updater.php'; require_once plugin_dir_path(__FILE__) . 'updater/class-dmsi-wp-license.php'; function my_plugin_init_updater() { $client = new DMSI_Update_Client([ 'api_url' => 'https://yoursite.com', 'product_id' => MY_PLUGIN_PRODUCT_ID, ]); // License...
