public function merge($opts)
    {
        $primary_opts = self::parse($opts);
        if ($primary_opts->apiKey === null) {
            $primary_opts->apiKey = $this->apiKey;
        }
        $primary_opts->headers = array_merge($this->headers, $primary_opts->headers);
        return $primary_opts;
    }