IWebmasterApi.SubmitFeed(String, String) Method

Definition

Submits feed

public:
 void SubmitFeed(System::String ^ siteUrl, System::String ^ feedUrl);
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebInvoke(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest, Method="POST")]
public void SubmitFeed(string siteUrl, string feedUrl);
abstract member SubmitFeed : string * string -> unit
Public Sub SubmitFeed (siteUrl As String, feedUrl As String)

Parameters

siteUrl
String
feedUrl
String
Attributes

Examples

XML request sample

POST /webmaster/api.svc/pox/SubmitFeed?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com

<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=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com


{
"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
}

Remarks

Supported formats: Sitemap, RSS 2.0, Atom 0.3, Atom 1.0 and text files.

Applies to