bing

package
v1.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client Bing Webmaster API客户端

func NewClient

func NewClient(config *Config) (*Client, error)

NewClient 创建新的Bing客户端

func (*Client) BatchSubmitSitemaps

func (c *Client) BatchSubmitSitemaps(sitemapURLs []string) ([]*SitemapSubmitResponse, error)

BatchSubmitSitemaps 批量提交网站地图

func (*Client) SubmitSitemap

func (c *Client) SubmitSitemap(sitemapURL string) (*SitemapSubmitResponse, error)

SubmitSitemap 提交网站地图到Bing

func (*Client) VerifySitemap

func (c *Client) VerifySitemap(sitemapURL string) error

VerifySitemap 验证网站地图可访问性

type Config

type Config struct {
	SiteURL string `json:"site_url"`
	APIKey  string `json:"api_key"`
}

Config Bing配置

type SitemapSubmitResponse

type SitemapSubmitResponse struct {
	Success    bool   `json:"success"`
	Message    string `json:"message"`
	StatusCode int    `json:"status_code"`
}

SitemapSubmitResponse sitemap提交响应

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL