/**
 * Send Request
 */
public function request(
    string $method,
    array $data = []
): array
{

    $url = $this->url($method);


    $this->logger->api(
        'BALE REQUEST',
        [
            'url'    => $url,
            'method' => $method,
            'data'   => $data
        ]
    );



    $response = wp_remote_post(
        $url,
        [
            'timeout' => 15,
            'headers' => [
                'Content-Type' => 'application/json'
            ],
            'body' => wp_json_encode($data)
        ]
    );



    if (is_wp_error($response)) {


        $this->logger->error(
            'BALE API ERROR',
            [
                'code' =>
                    $response->get_error_code(),

                'message' =>
                    $response->get_error_message()
            ]
        );


        return [
            'ok'    => false,
            'error' =>
                $response->get_error_message()
        ];

    }





    $status =
        wp_remote_retrieve_response_code($response);


    $headers =
        wp_remote_retrieve_headers($response);


    $body =
        wp_remote_retrieve_body($response);



    $this->logger->api(
        'BALE RAW RESPONSE',
        [
            'status'  => $status,
            'headers' => $headers,
            'body'    => $body
        ]
    );




    $json =
        json_decode(
            $body,
            true
        );



    if (!is_array($json)) {


        $this->logger->error(
            'BALE INVALID JSON',
            [
                'body'=>$body
            ]
        );


        return [
            'ok'=>false,
            'error'=>'Invalid JSON',
            'raw'=>$body
        ];

    }





    $this->logger->api(
        'BALE RESPONSE',
        $json
    );





    $messageId = null;



    if (
        isset($json['result']['message_id'])
    ) {


        $messageId =
            $json['result']['message_id'];


    }
    elseif (
        isset($json['message_id'])
    ) {


        $messageId =
            $json['message_id'];


    }




    $this->logger->api(
        'BALE MESSAGE INFO',
        [
            'message_id'=>$messageId,
            'response'=>$json
        ]
    );



    return $json;

}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//abroonco.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://abroonco.com/post-sitemap.xml</loc>
		<lastmod>2026-07-15T06:13:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/page-sitemap.xml</loc>
		<lastmod>2026-07-20T06:23:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/codevz_faq-sitemap.xml</loc>
		<lastmod>2026-06-09T05:53:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/product-sitemap.xml</loc>
		<lastmod>2025-12-29T09:18:08+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/category-sitemap.xml</loc>
		<lastmod>2026-07-15T06:13:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/post_tag-sitemap.xml</loc>
		<lastmod>2026-07-15T06:13:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/product_brand-sitemap.xml</loc>
		<lastmod>2025-07-08T09:07:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/product_cat-sitemap.xml</loc>
		<lastmod>2025-12-29T09:18:08+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://abroonco.com/product_tag-sitemap.xml</loc>
		<lastmod>2025-12-29T09:18:08+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->