IWebmasterApi.SubmitFeed
Namespace: Microsoft.Bing.Webmaster.Api
IWebmasterApi.SubmitFeed Method
Submits feed
Syntax
void SubmitFeed( string siteUrl, string feedUrl )
Parameters
Remarks
Supported formats: Sitemap, RSS 2.0, Atom 0.3, Atom 1.0 and text files.
Examples
XML request sample
POST /webmaster/api.svc/pox/SubmitFeed?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1 Content-Type: application/xml; charset=utf-8 Host: ssl.bing.com Content-Length: 139 <SubmitFeed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api"> <siteUrl>http://example.com</siteUrl> <feedUrl>http://example.com/sitemap.xml</feedUrl> </SubmitFeed>
XML response sample
HTTP/1.1 200 OK Content-Length: 0
JSON request sample
POST /webmaster/api.svc/json/SubmitFeed?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
Content-Length: 80
{
"siteUrl":"http:\/\/example.com",
"feedUrl":"http:\/\/example.com\/sitemap.xml"
}
JSON response sample
HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8
{
"d":null
}
See Also
Show: