1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! # Bing Webmaster API Client
//!
//! This crate provides a Rust client for the [Bing Webmaster API](https://learn.microsoft.com/en-us/bingwebmaster/),
//! allowing you to interact with Bing Webmaster Tools programmatically.
//!
//! ## Features
//!
//! - **Complete API Coverage**: All non-obsolete methods from the IWebmasterApi interface
//! - **Type-Safe**: Strongly typed structures with serde support
//! - **Async/Await**: Built for modern async Rust applications
//! - **Middleware Support**: Built on reqwest-middleware for extensibility
//! - **Error Handling**: Comprehensive error handling with specific error types and anyhow integration
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use bing_webmaster_api::{BingWebmasterClient, Result};
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! let client = BingWebmasterClient::new("your-api-key".to_string());
//!
//! // Add a site
//! client.add_site("https://example.com").await?;
//!
//! // Submit URLs
//! client.submit_url("https://example.com", "https://example.com/page1").await?;
//!
//! // Get crawl issues
//! let issues = client.get_crawl_issues("https://example.com").await?;
//! println!("Found {} URLs with issues", issues.len());
//!
//! Ok(())
//! }
//! ```
//!
//! ## API Methods
//!
//! ### Site Management
//! - [`add_site`](BingWebmasterClient::add_site) - Add a new site
//! - [`verify_site`](BingWebmasterClient::verify_site) - Verify site ownership
//! - [`add_site_roles`](BingWebmasterClient::add_site_roles) - Manage user permissions
//!
//! ### URL Submission
//! - [`submit_url`](BingWebmasterClient::submit_url) - Submit single URL
//! - [`submit_url_batch`](BingWebmasterClient::submit_url_batch) - Submit multiple URLs
//! - [`submit_content`](BingWebmasterClient::submit_content) - Submit content with metadata
//!
//! ### Analytics
//! - [`get_crawl_issues`](BingWebmasterClient::get_crawl_issues) - Get crawl problems
//! - [`get_page_stats`](BingWebmasterClient::get_page_stats) - Get traffic statistics
//! - [`get_crawl_stats`](BingWebmasterClient::get_crawl_stats) - Get crawl statistics
pub use BingWebmasterClient;
pub use *;
pub use ;
// Re-export middleware types for convenience
pub use ;