public function toggleShopConnection($shop, $activeState)
    {
        $shopName = parse_url($shop, PHP_URL_HOST);
        $endpoint = 'woocommerce/toggle_shop_connection';

        $params = array_merge($this->prepareParams(), ['active_state' => $activeState, 'shop' => $shopName] );
        return $this->restClient->post( $endpoint, $params );
    }
public function toggleShopConnection($shop, $activeState)
    {
        $shopName = parse_url($shop, PHP_URL_HOST);
        $endpoint = 'woocommerce/toggle_shop_connection';

        $params = array_merge($this->prepareParams(), ['active_state' => $activeState, 'shop' => $shopName] );
        return $this->restClient->post( $endpoint, $params );
    }
public function toggleShopConnection ( $ shop , $ activeState ) { $ shopName = parse_url ( $ shop , PHP_URL_HOST ) ; $ endpoint = 'woocommerce/toggle_shop_connection' ; $ params = array_merge ( $ this -> prepareParams ( ) , [ 'active_state' => $ activeState , 'shop' => $ shopName ] ) ; return $ this -> restClient -> post ( $ endpoint , $ params ) ; }
Calls api endpoint that will toggle shop's active state
in our db
Calls api endpoint that will toggle shop s active state in our db