# sync-basalam/1.9.0/includes/Services/Api/PostApiService.php

ووسلام – همگام سازی ووکامرس و باسلام, version 1.9.0. 23 lines.

- Page: https://pluginprobe.com/plugins/sync-basalam/1.9.0/code/includes/Services/Api/PostApiService.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.9.0/raw/includes/Services/Api/PostApiService.php
- Modified: 2026-06-21T07:48:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sync-basalam/1.9.0/code/includes/Services/Api/PostApiService.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Services\Api;

defined('ABSPATH') || exit;

class PostApiService extends AbstractApiService
{
    protected function executeRequest(array $request)
    {
        return wp_remote_post($request['url'], [
            'body'    => $request['data'],
            'headers' => $request['headers'],
            'timeout' => 10,
        ]);
    }

    public function send(string $url, $data, array $headers = []): array
    {
        return $this->run($url, $data, $headers);
    }
}

```
