Plugin Directory

Changeset 3178369


Ignore:
Timestamp:
10/29/2024 09:19:52 PM (17 months ago)
Author:
baselinker
Message:

version 1.0.24 with secure endpoints

Location:
baselinker-woo
Files:
1 added
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • baselinker-woo/tags/1.0.24/baselinker.php

    r3175121 r3178369  
    22/**
    33 * @package BaseLinker
    4  * @version 1.0.23
     4 * @version 1.0.24
    55 */
    66/*
     
    99Description: This modules offers faster WooCommerce product synchronizations to BaseLinker, improved offer filtering and order searching.  A must-have for any BaseLinker user.
    1010Author: BaseLinker
    11 Version: 1.0.23
     11Version: 1.0.24
    1212Author URI: http://baselinker.com/
    1313License: GPLv3 or later
     
    2121function baselinker_version($data)
    2222{
    23     return '1.0.23';
     23    return '1.0.24';
    2424}
    2525
     
    571571}
    572572
     573function baselinker_authenticate()
     574{
     575    $auth = new WC_REST_Authentication();
     576    return $auth->authenticate(false) ? true : false;
     577}
     578
     579
    573580// defining additional REST API endpoints
    574581add_action('rest_api_init', function() {
    575582
    576583    register_rest_route('bl/v2', '/shipping_methods/', array('methods' => 'GET', 'callback' => 'baselinker_shipping_methods', 'permission_callback' => '__return_true'));
    577     register_rest_route('bl/v2', '/product_list/', array('methods' => 'GET', 'callback' => 'baselinker_product_list', 'permission_callback' => '__return_true'));
    578     register_rest_route('bl/v2', '/category_list/', array('methods' => 'GET', 'callback' => 'baselinker_category_list', 'permission_callback' => '__return_true'));
     584    register_rest_route('wc-bl/v2', '/product_list/', array('methods' => 'GET', 'callback' => 'baselinker_product_list', 'permission_callback' => 'baselinker_authenticate'));
     585    register_rest_route('wc-bl/v2', '/category_list/', array('methods' => 'GET', 'callback' => 'baselinker_category_list', 'permission_callback' => 'baselinker_authenticate'));
    579586    register_rest_route('bl/v2', '/additional_order_statuses/', array('methods' => 'GET', 'callback' => 'baselinker_additional_order_statuses', 'permission_callback' => '__return_true'));
    580587    register_rest_route('bl/v2', '/version/', array('methods' => 'GET', 'callback' => 'baselinker_version', 'permission_callback' => '__return_true'));
  • baselinker-woo/tags/1.0.24/readme.txt

    r3175465 r3178369  
    22Plugin Name: Base (formerly BaseLinker) - 300+ marketplaces, 150+ carriers & PIM & OMS & WMS in one
    33Contributors: baselinker
    4 Stable tag: 1.0.23
     4Stable tag: 1.0.24
    55Tested up to: 6.6.2
    66Requires at least: 4.5.0
  • baselinker-woo/trunk/baselinker.php

    r3174101 r3178369  
    22/**
    33 * @package BaseLinker
    4  * @version 1.0.23
     4 * @version 1.0.24
    55 */
    66/*
     
    99Description: This modules offers faster WooCommerce product synchronizations to BaseLinker, improved offer filtering and order searching.  A must-have for any BaseLinker user.
    1010Author: BaseLinker
    11 Version: 1.0.23
     11Version: 1.0.24
    1212Author URI: http://baselinker.com/
    1313License: GPLv3 or later
     
    2121function baselinker_version($data)
    2222{
    23     return '1.0.23';
     23    return '1.0.24';
    2424}
    2525
     
    571571}
    572572
     573function baselinker_authenticate()
     574{
     575    $auth = new WC_REST_Authentication();
     576    return $auth->authenticate(false) ? true : false;
     577}
     578
     579
    573580// defining additional REST API endpoints
    574581add_action('rest_api_init', function() {
    575582
    576583    register_rest_route('bl/v2', '/shipping_methods/', array('methods' => 'GET', 'callback' => 'baselinker_shipping_methods', 'permission_callback' => '__return_true'));
    577     register_rest_route('bl/v2', '/product_list/', array('methods' => 'GET', 'callback' => 'baselinker_product_list', 'permission_callback' => '__return_true'));
    578     register_rest_route('bl/v2', '/category_list/', array('methods' => 'GET', 'callback' => 'baselinker_category_list', 'permission_callback' => '__return_true'));
     584    register_rest_route('wc-bl/v2', '/product_list/', array('methods' => 'GET', 'callback' => 'baselinker_product_list', 'permission_callback' => 'baselinker_authenticate'));
     585    register_rest_route('wc-bl/v2', '/category_list/', array('methods' => 'GET', 'callback' => 'baselinker_category_list', 'permission_callback' => 'baselinker_authenticate'));
    579586    register_rest_route('bl/v2', '/additional_order_statuses/', array('methods' => 'GET', 'callback' => 'baselinker_additional_order_statuses', 'permission_callback' => '__return_true'));
    580587    register_rest_route('bl/v2', '/version/', array('methods' => 'GET', 'callback' => 'baselinker_version', 'permission_callback' => '__return_true'));
  • baselinker-woo/trunk/readme.txt

    r3175465 r3178369  
    22Plugin Name: Base (formerly BaseLinker) - 300+ marketplaces, 150+ carriers & PIM & OMS & WMS in one
    33Contributors: baselinker
    4 Stable tag: 1.0.23
     4Stable tag: 1.0.24
    55Tested up to: 6.6.2
    66Requires at least: 4.5.0
Note: See TracChangeset for help on using the changeset viewer.