Plugin Directory

Changeset 3343686


Ignore:
Timestamp:
08/12/2025 04:14:34 PM (8 months ago)
Author:
grocerslist
Message:

Updates to API client

Location:
grocerslist
Files:
219 added
4 edited

Legend:

Unmodified
Added
Removed
  • grocerslist/trunk/README.md

    r3343606 r3343686  
    44Author: Grocers List, Engineering
    55Tested up to: 6.8
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77Requires PHP: 7.0
    88License: GPLv3
     
    3737
    3838#### - 8/11/2025 - v1.0.4 - Sends plugin version in header of validate-api-key requests
     39#### - 8/12/2025 - v1.0.5 - Sends plugin version in header of all requests that include x-api-key
    3940
    4041### Resources:
  • grocerslist/trunk/grocerslist.php

    r3343606 r3343686  
    77Requires PHP: 7.0
    88Tested up to: 6.8
    9 Version: 1.0.4
    10 Stable tag: 1.0.4
     9Version: 1.0.5
     10Stable tag: 1.0.5
    1111Author: Grocers List Engineering
    1212License: GPLv3
     
    1818if (!defined('ABSPATH')) exit;
    1919
    20 define('GROCERS_LIST_VERSION', '1.0.4');
     20define('GROCERS_LIST_VERSION', '1.0.5');
    2121define('GROCERS_LIST_PLUGIN_FILE', __FILE__);
    2222define('GROCERS_LIST_PLUGIN_DIR', __DIR__);
  • grocerslist/trunk/includes/Service/ApiClient.php

    r3343606 r3343686  
    2424                'Content-Type' => 'application/json',
    2525                'x-api-key' => $api_key,
     26                'x-gl-plugin-version' => GROCERS_LIST_VERSION,
    2627            ],
    2728            'body' => json_encode(['urls' => $urls]),
     
    7879                'Content-Type' => 'application/json',
    7980                'x-api-key' => $apiKey,
     81                'x-gl-plugin-version' => GROCERS_LIST_VERSION,
    8082            ],
    8183            'body' => json_encode([
     
    104106                'Content-Type' => 'application/json',
    105107                'x-api-key' => $apiKey,
     108                'x-gl-plugin-version' => GROCERS_LIST_VERSION,
    106109            ],
    107110            'body' => json_encode([
     
    129132                'Content-Type' => 'application/json',
    130133                'x-api-key' => $apiKey,
     134                'x-gl-plugin-version' => GROCERS_LIST_VERSION,
    131135            ],
    132136            'body' => json_encode([
     
    154158                'Content-Type' => 'application/json',
    155159                'x-api-key' => $apiKey,
     160                'x-gl-plugin-version' => GROCERS_LIST_VERSION,
    156161            ],
    157162            'body' => json_encode([
     
    179184            'headers' => [
    180185                'x-api-key' => $apiKey,
     186                'x-gl-plugin-version' => GROCERS_LIST_VERSION,
    181187                'Authorization' => "Bearer " . $jwt,
    182188            ],
     
    201207            'headers' => [
    202208                'x-api-key' => $apiKey,
     209                'x-gl-plugin-version' => GROCERS_LIST_VERSION,
    203210                'Authorization' => "Bearer " . $jwt,
    204211            ],
  • grocerslist/trunk/vendor/composer/installed.php

    r3343606 r3343686  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '3aba29a9616e7983087a26f885859dc368633650',
     6        'reference' => 'a8e6c4a1326302f3a38236221f630e5b52722fd5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => '3aba29a9616e7983087a26f885859dc368633650',
     16            'reference' => 'a8e6c4a1326302f3a38236221f630e5b52722fd5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.