Example #1
0
File: aaa.php Project: ram-1501/rs
     break;
 case 'getEtsyRequest':
     if (!$api->ifUserLogined()) {
         echo 'reload';
     }
     if (isset($_POST['access_token_secret'])) {
         echo $api->etsyRequest($_POST['shop'], $_POST['access_token'], $_POST['access_token_secret'], $_POST['method'], $_POST['suffix_url']);
     } else {
         echo $api->etsyRequest($_POST['shop'], $_POST['access_token'], NULL, $_POST['method'], $_POST['suffix_url']);
     }
     break;
 case 'getLexityRequest':
     if (!$api->ifUserLogined()) {
         echo 'reload';
     }
     echo $api->lexityRequest($_POST['shop'], $_POST['access_token'], $_POST['method'], $_POST['suffix_url']);
     break;
 case 'getBigcommerceProducts':
     if (!$api->ifUserLogined()) {
         echo 'reload';
     }
     echo $api->getBigCommerceProducts($_POST['store'], $_POST['client_id'], $_POST['access_token'], $_POST['page']);
     break;
 case 'ec_delete_a_user_based_on_their_email_and_password_1029384756':
     // if ( isset( $_POST['username'] ) && isset( $_POST['password'] ) ) echo $api->deleteUser( $_POST['username'], Utilities::SHA1HashPassword( $_POST['password'] ) );
     if (isset($_POST['username']) && isset($_POST['password'])) {
         echo $api->deleteUser($_POST['username'], $_POST['password']);
     } else {
         echo 'error';
     }
     break;