Bing URL and Content Submission API

PatPat
Tourist
9 0 0

Hi. 
Does anybody know how to apply Bing's URL and Content Submission API?

I've tried adding the following code (which I got from the Bing Webmaster Tools page) into the theme.liquid page, but it didn't do anything other than mess up my webpages.

Note: I added my own API key and URLs.

/* JSON request sample: */ 

POST /webmaster/api.svc/json/SubmitUrlbatch?​apikey=sampleapikeyEDECC1EA4AE341CC8B6 HTTP/1.1​
Content-Type: application/json; charset=utf-8​
Host: ssl.bing.com​

{
"siteUrl":"http://yoursite.com",​
"urlList":[
"http://yoursite.com/url1",
"http://yoursite.com/url2",
"http://yoursite.com/url3"
]
}

/* JSON response sample: */

HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8

{
"d":null
}

 Thank you for any help you can provide.

0 Likes