Plugin Directory

Changeset 3212585


Ignore:
Timestamp:
12/24/2024 11:38:16 AM (15 months ago)
Author:
teamzt
Message:

Updated the API URLs

Location:
mylivecart
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mylivecart/tags/1.0.3/includes/class-ztcbl-api.php

    r3160724 r3212585  
    435435        $secret_key   = get_option(sanitize_key('ztcbl-auth-key'));
    436436        $api_url      = ZTCBL_API_URL . $status . '/event/list';
     437        $cons_sec_key        = get_option( sanitize_key( 'ztbcl_consumer_secret_key' ) );
     438        $consumer_secret_key = isset( $cons_sec_key ) ? $cons_sec_key : '';
     439
    437440        $query_params = array(
    438441            'page'     => $page,
     
    445448                'secret-key' => $secret_key,
    446449                'api-type'   => 1,
     450                'consumer-secret' => $consumer_secret_key,
    447451            ),
    448452
  • mylivecart/tags/1.0.3/mylivecart.php

    r3160726 r3212585  
    2222defined('ZTCBL_UI_FRONT_DIR') ? '' : define('ZTCBL_UI_FRONT_DIR', ZTCBL_PLUGIN_DIR . 'ui-front/');
    2323defined('ZTCBL_UI_ADMIN_DIR') ? '' : define('ZTCBL_UI_ADMIN_DIR', ZTCBL_PLUGIN_DIR . 'ui-admin/');
    24 defined('ZTCBL_API_URL') ? '' : define('ZTCBL_API_URL', 'https://crystal-tenant.mylivecart.com/api/v1/wp/');
    25 defined('ZTCBL_INF_API_URL') ? '' : define('ZTCBL_INF_API_URL', 'https://crystal-admin.mylivecart.com/api/v1/');
    26 defined('ZTCBL_SOCKET_URL') ? '' : define('ZTCBL_SOCKET_URL', 'https://websocket.mylivecart.com:3003/app');
     24defined('ZTCBL_API_URL') ? '' : define('ZTCBL_API_URL', 'https://tenant-api.mylivecart.com/api/v1/wp/');
     25defined('ZTCBL_INF_API_URL') ? '' : define('ZTCBL_INF_API_URL', 'https://admin-api.mylivecart.com/api/v1/wp/');
     26defined('ZTCBL_SOCKET_URL') ? '' : define('ZTCBL_SOCKET_URL', 'https://prod-srs.mylivecart.com:3003/app');
    2727defined('ZTCBL_WEB_APP_URL') ? '' : define('ZTCBL_WEB_APP_URL', 'https://web.mylivecart.com');
    28 
    2928/**
    3029 * Create Event List and Event details page on plugin activation
  • mylivecart/trunk/includes/class-ztcbl-api.php

    r3160718 r3212585  
    435435        $secret_key   = get_option(sanitize_key('ztcbl-auth-key'));
    436436        $api_url      = ZTCBL_API_URL . $status . '/event/list';
     437        $cons_sec_key        = get_option( sanitize_key( 'ztbcl_consumer_secret_key' ) );
     438        $consumer_secret_key = isset( $cons_sec_key ) ? $cons_sec_key : '';
     439       
    437440        $query_params = array(
    438441            'page'     => $page,
     
    445448                'secret-key' => $secret_key,
    446449                'api-type'   => 1,
     450                'consumer-secret' => $consumer_secret_key,
    447451            ),
    448452
  • mylivecart/trunk/mylivecart.php

    r3160725 r3212585  
    2222defined('ZTCBL_UI_FRONT_DIR') ? '' : define('ZTCBL_UI_FRONT_DIR', ZTCBL_PLUGIN_DIR . 'ui-front/');
    2323defined('ZTCBL_UI_ADMIN_DIR') ? '' : define('ZTCBL_UI_ADMIN_DIR', ZTCBL_PLUGIN_DIR . 'ui-admin/');
    24 defined('ZTCBL_API_URL') ? '' : define('ZTCBL_API_URL', 'https://crystal-tenant.mylivecart.com/api/v1/wp/');
    25 defined('ZTCBL_INF_API_URL') ? '' : define('ZTCBL_INF_API_URL', 'https://crystal-admin.mylivecart.com/api/v1/');
    26 defined('ZTCBL_SOCKET_URL') ? '' : define('ZTCBL_SOCKET_URL', 'https://websocket.mylivecart.com:3003/app');
     24defined('ZTCBL_API_URL') ? '' : define('ZTCBL_API_URL', 'https://tenant-api.mylivecart.com/api/v1/wp/');
     25defined('ZTCBL_INF_API_URL') ? '' : define('ZTCBL_INF_API_URL', 'https://admin-api.mylivecart.com/api/v1/wp/');
     26defined('ZTCBL_SOCKET_URL') ? '' : define('ZTCBL_SOCKET_URL', 'https://prod-srs.mylivecart.com:3003/app');
    2727defined('ZTCBL_WEB_APP_URL') ? '' : define('ZTCBL_WEB_APP_URL', 'https://web.mylivecart.com');
     28
    2829
    2930/**
Note: See TracChangeset for help on using the changeset viewer.