IWebmasterApi.GetBlockedUrls
Namespace: Microsoft.Bing.Webmaster.Api
IWebmasterApi.GetBlockedUrls Method
Get list of blocked pages/directories
Syntax
List<BlockedUrl> GetBlockedUrls(
string siteUrl
)
Parameters
Return Value
List of blocked urls.
Examples
XML request sample
GET /webmaster/api.svc/pox/GetBlockedUrls?siteUrl=http://example.com&apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1 Content-Type: application/xml; charset=utf-8 Host: ssl.bing.com
XML response sample
HTTP/1.1 200 OK Content-Length: 0
JSON request sample
POST /webmaster/api.svc/json/AddBlockedUrl?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
Content-Length: 207
{
"siteUrl":"http:\/\/example.com",
"blockedUrl":
{
"__type":"BlockedUrl:#Microsoft.Bing.Webmaster.Api",
"Date":"\/Date(-62135568000000-0800)\/",
"EntityType":0,
"RequestType":1,
"Url":"http:\/\/example.com\/url1"
}
}
JSON response sample
HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8
{
"d":null
}
See Also
Show: