Plugin Directory

Changeset 2837801


Ignore:
Timestamp:
12/22/2022 06:53:19 AM (3 years ago)
Author:
prosolution
Message:

1.8.7

  • Add new mechanic, now jobdetail that have new or pending status can be accessed via workexpert recruitment module
Location:
prosolution-wp-client/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • prosolution-wp-client/trunk/README.txt

    r2826949 r2837801  
    6666
    6767== Changelog ==
     68
     69= 1.8.7 =
     70* Add new mechanic, now jobdetail that have new or pending status can be accessed via workexpert recruitment module
    6871
    6972= 1.8.6 =
  • prosolution-wp-client/trunk/prosolwpclient.php

    r2826949 r2837801  
    1717     * Plugin URI:        https://prosolution.com/produkte-und-services/workexpert.html
    1818     * Description:       WordPress client for ProSolution
    19      * Version:           1.8.6
     19     * Version:           1.8.7
    2020     * Author:            ProSolution
    2121     * Author URI:        https://www.prosolution.com
     
    3939
    4040    defined('PROSOLWPCLIENT_PLUGIN_NAME') or define('PROSOLWPCLIENT_PLUGIN_NAME', 'prosolwpclient');
    41     defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8.6');
     41    defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8.7');
    4242    defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__));
    4343    defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__));
  • prosolution-wp-client/trunk/public/class-prosolwpclient-public.php

    r2826949 r2837801  
    265265            $jobid = isset($_REQUEST['jobid']) ? $_REQUEST['jobid'] : '';
    266266            //$uuid='EAC87A80-9262-4C49-851F7C5FD02FBE64';
    267            
     267            $woexPreviewUUID = isset($_REQUEST['woexPreview']) ? $_REQUEST['woexPreview'] : '';
    268268            if ( $param_type == 'details' ) {
    269269                // project 1440,kev
     
    327327                    // var_dump($profession_decode);
    328328                } else {
    329                     $job_details_result = sprintf( __( 'Database returns empty', 'prosolwpclient' ) );
     329                    $header_info = CBXProSolWpClient_TableHelper::proSol_apiConfig($issite);
     330                    $safe_data = array(
     331                        'jobid'             => $jobid,
     332                        'uuid'              => $woexPreviewUUID
     333                    );
     334                    $api_location = 'recruitment/';
     335                    $api_body  = array( "param" => json_encode( $safe_data ) );
     336                    $response    = wp_remote_post( $api_config['api_url'] .''. $api_location .'previewisvalid', array(
     337                        'headers' => $header_info,
     338                        'body'    => $api_body
     339                    ) );
     340                    if ( ! is_wp_error( $response ) ) {
     341                        $response_data = json_decode( $response['body'] )->data;
     342                        $result = $response_data->previewstatus;
     343                        if($result){
     344                            $response = wp_remote_get( $api_config['api_url'] . $api_location . 'jobdetail/' . $jobid, array( 'headers' => $header_info ) );
     345                            $response_data = json_decode( $response['body'] )->data;
     346
     347                            $job_details_result = $response_data;
     348                        }else{
     349                            $job_details_result = sprintf( __( 'Database returns empty', 'prosolwpclient' ) );
     350                        }
     351                    }else{
     352                        $job_details_result = sprintf( __( 'Api response failed. Message: %s', 'prosolwpclient' ), $response->get_error_message() );
     353                    }
    330354                }
    331355               
Note: See TracChangeset for help on using the changeset viewer.