| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | /** |
| 4 | 4 | * Plugin Name: Tagembed: Social Media Feeds and Customer Reviews Widget |
| 5 | 5 | * Plugin URI: https://tagembed.com/ |
| 6 | 6 | * Description: Display social media feeds and user-generated content in an interactive widget. |
| 7 | - * Version: 7.9 | |
| 7 | + * Version: 8.0 | |
| 8 | 8 | * Author: Tagembed |
| 9 | 9 | * Author URI: https://tagembed.com/ |
| 10 | 10 | * License: GPLv3 |
| 11 | 11 | * License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | die; |
| 16 | 16 | endif; |
| 17 | 17 | |
| 18 | 18 | /* --Start-- Create Constant */ |
| 19 | -!defined('TAGEMBED_PLUGIN_VERSION') && define('TAGEMBED_PLUGIN_VERSION', '7.9'); | |
| 19 | +!defined('TAGEMBED_PLUGIN_VERSION') && define('TAGEMBED_PLUGIN_VERSION', '8.0'); | |
| 20 | 20 | !defined('TAGEMBED_PLUGIN_DIR_PATH') && define('TAGEMBED_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__)); |
| 21 | 21 | !defined('TAGEMBED_PLUGIN_URL') && define('TAGEMBED_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 22 | 22 | !defined('TAGEMBED_PLUGIN_REDIRECT_URL') && define('TAGEMBED_PLUGIN_REDIRECT_URL', get_admin_url(null, 'admin.php?page=')); |
| 23 | 23 | |
| @@ -250,8 +250,30 @@ | ||
| 250 | 250 | /* --Start-- Manage Param Data */ |
| 251 | 251 | $param['userId'] = sanitize_key($__tagembed__user_details->userId); |
| 252 | 252 | /* --End-- Manage Param Data */ |
| 253 | 253 | $response = ___tagembed__wpApiCall(TAGEMBED_PLUGIN_API_URL . 'apiaccount/checkUserAccountStatus', $param, ['Authorization:' . $__tagembed__user_details->accessToken]); |
| 254 | + unset($param); | |
| 255 | + $response = ___tagembed__manageApiResponse($response); | |
| 256 | + return ___tagembed__exitWithSuccess($response); | |
| 257 | + break; | |
| 258 | + case '__tagembed__get_cards': | |
| 259 | + if (empty($__tagembed__user_details)) : | |
| 260 | + return ___tagembed__exitWithDanger(); | |
| 261 | + endif; | |
| 262 | + $param['userId'] = sanitize_key($__tagembed__user_details->userId); | |
| 263 | + $param['platform'] = TAGEMBED_PLUGIN_PLATFORM; | |
| 264 | + $response = ___tagembed__wpApiCall(TAGEMBED_PLUGIN_API_URL . 'apiaccount/getcards', $param, ['Authorization:' . $__tagembed__user_details->accessToken]); | |
| 265 | + unset($param); | |
| 266 | + $response = ___tagembed__manageApiResponse($response); | |
| 267 | + return ___tagembed__exitWithSuccess($response); | |
| 268 | + break; | |
| 269 | + case '__tagembed__card_session': | |
| 270 | + if (empty($__tagembed__user_details)) : | |
| 271 | + return ___tagembed__exitWithDanger(); | |
| 272 | + endif; | |
| 273 | + $param['userId'] = sanitize_key($__tagembed__user_details->userId); | |
| 274 | + $param['platform'] = TAGEMBED_PLUGIN_PLATFORM; | |
| 275 | + $response = ___tagembed__wpApiCall(TAGEMBED_PLUGIN_API_URL . 'apiaccount/cardsession', $param, ['Authorization:' . $__tagembed__user_details->accessToken]); | |
| 254 | 276 | unset($param); |
| 255 | 277 | $response = ___tagembed__manageApiResponse($response); |
| 256 | 278 | return ___tagembed__exitWithSuccess($response); |
| 257 | 279 | break; |