src/MastodonClient.php
public function post(string $api, array $params = []): array
    {
        $options = [];

        if (!empty($params)) {
            $options['form_params'] = $params;
        }

        return $this->call('POST', $api, $options);
    }
public function post(string $api, array $params = []): array
    {
        $options = [];

        if (!empty($params)) {
            $options['form_params'] = $params;
        }

        return $this->call('POST', $api, $options);
    }
@param string $api
@param array  $params

@return array