protected function _request_github_api() {
		global $wp_version;

		$url = sprintf(
			'https://api.github.com/repos/%1$s/%2$s/releases/latest',
			$this->user_name,
			$this->repository
		);

		return wp_remote_get(
			apply_filters(
				sprintf(
					'inc2734_github_theme_updater_request_url_%1$s/%2$s',
					$this->user_name,
					$this->repository
				),
				$url,
				$this->user_name,
				$this->repository
			),
			[
				'user-agent' => 'WordPress/' . $wp_version,
				'headers'    => [
					'Accept-Encoding' => '',
				],
			]
		);
	}
protected function _request_github_api() {
		global $wp_version;

		$url = sprintf(
			'https://api.github.com/repos/%1$s/%2$s/releases/latest',
			$this->user_name,
			$this->repository
		);

		return wp_remote_get(
			apply_filters(
				sprintf(
					'inc2734_github_theme_updater_request_url_%1$s/%2$s',
					$this->user_name,
					$this->repository
				),
				$url,
				$this->user_name,
				$this->repository
			),
			[
				'user-agent' => 'WordPress/' . $wp_version,
				'headers'    => [
					'Accept-Encoding' => '',
				],
			]
		);
	}
protected function _request_github_api ( ) { global $ wp_version ; $ url = sprintf ( 'https://api.github.com/repos/%1$s/%2$s/releases/latest' , $ this -> user_name , $ this -> repository ) ; return wp_remote_get ( apply_filters ( sprintf ( 'inc2734_github_theme_updater_request_url_%1$s/%2$s' , $ this -> user_name , $ this -> repository ) , $ url , $ this -> user_name , $ this -> repository ) , [ 'user-agent' => 'WordPress/' . $ wp_version , 'headers' => [ 'Accept-Encoding' => '' , ] , ] ) ; }
Get request to GitHub API

@return json|WP_Error
Get request to GitHub API