Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

IWebmasterApi.GetBlockedUrls

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.GetBlockedUrls Method

Get list of blocked pages/directories

Syntax

List<BlockedUrl> GetBlockedUrls(
string siteUrl
)

Parameters

siteUrl
Type: System.String
Site url

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.