Changeset 2072453
- Timestamp:
- 04/22/2019 10:26:50 AM (7 years ago)
- Location:
- tigris-flexplatform/trunk
- Files:
-
- 5 edited
-
assets/js/sf-tfp-script.js (modified) (1 diff)
-
core/class/TigrisFPSaleforceOAuth.php (modified) (2 diffs)
-
core/class/class-plugin-tigris-fp-rest.php (modified) (6 diffs)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tigris-flexplatform/trunk/assets/js/sf-tfp-script.js
r1979298 r2072453 113 113 jQuery( '.vacancy-form__ajax-loader' ).fadeOut(); 114 114 jQuery( '.vacancy-form__response-output' ).text( respond ).fadeIn( function() { 115 var that = jQuery( this ); 115 116 setTimeout( function() { 116 jQuery( this ).fadeOut();117 that.fadeOut(); 117 118 }, 5000 ); 118 119 } ); -
tigris-flexplatform/trunk/core/class/TigrisFPSaleforceOAuth.php
r1979298 r2072453 186 186 ) 187 187 ); 188 if( ! is_wp_error($idtoken_validation_result) && $idtoken_validation_result['response']['code'] == 200) {188 if( !empty($idtoken_validation_result) && !is_wp_error($idtoken_validation_result) && $idtoken_validation_result['response']['code'] == 200) { 189 189 $idtoken_response = json_decode($idtoken_validation_result['body'], true); 190 190 $oauth_username = $idtoken_response['email']; … … 198 198 $valid = true; 199 199 } 200 return array($oauth_username, $ idtoken_response['urls']['rest']);200 return array($oauth_username, $tigris_rest_data_url); 201 201 } 202 202 } -
tigris-flexplatform/trunk/core/class/class-plugin-tigris-fp-rest.php
r1979298 r2072453 18 18 $args = array ( 19 19 'method' => 'GET', 20 'timeout' => 50, 20 21 'headers' => array( 21 22 'Authorization' => 'Bearer ' . $_COOKIE['tigris_oauth_access_token'], … … 58 59 'body' => json_encode($fieldsToInsert), 59 60 'method' => 'POST', 61 'timeout' => 50, 60 62 'headers' => array( 61 63 'Authorization' => 'Bearer ' . $this->_token, … … 68 70 69 71 $r = wp_remote_request( $url, $args ); 70 if( $r['response']['code'] == 201)72 if(!is_wp_error($r) && !empty($r['response']['code']) && $r['response']['code'] == 201) 71 73 $response = json_decode( $r['body'], true ); 72 74 } … … 74 76 } catch (Exception $e) { 75 77 error_log( 'Salesforce error: '.$e ); 78 return false; 76 79 } 77 80 } … … 88 91 'body' => json_encode($fieldsToUpdate), 89 92 'method' => 'PATCH', 93 'timeout' => 50, 90 94 'headers' => array( 91 95 'Authorization' => 'Bearer ' . $this->_token, … … 119 123 'body' => json_encode($fieldsToInsert), 120 124 'method' => 'POST', 125 'timeout' => 50, 121 126 'headers' => array( 122 127 'Authorization' => 'Bearer ' . $this->_token, -
tigris-flexplatform/trunk/index.php
r2045228 r2072453 3 3 Plugin Name: Tigris Flexplatform 4 4 Description: Integration Tigris user application for Salesforce in Wordpress. 5 Version: 1.0. 15 Version: 1.0.2 6 6 Author: Tigris - Flexplatform 7 7 Author URI: https://www.tigris.nl -
tigris-flexplatform/trunk/readme.txt
r2039503 r2072453 7 7 Tested up to: 5.1 8 8 Requires PHP: 5.6 9 Stable tag: 1.0. 19 Stable tag: 1.0.2 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 Added sort of vacancies by last update date/time 38 38 Fixed some bags 39 = 1.0.2 = 40 Fixed some bags
Note: See TracChangeset
for help on using the changeset viewer.