IWebmasterApi.AddQueryParameter

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.AddQueryParameter Method

Add url normalization perameter

Syntax

void AddQueryParameter(
string siteUrl,
string queryParameter
)

Parameters

siteUrl
Type: System.String
Site url

queryParameter
Type: Query Parameter
Query parameter

Remarks

queryParameter may contain only unreserved letters and colon symbol (:).
The site can has only limited number of url normalization marameters.

Examples

XML request sample

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

<AddQueryParameter xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api">
<siteUrl>http://example.com</siteUrl>
<queryParameter>FROM</queryParameter>
</AddQueryParameter>

XML response sample

HTTP/1.1 200 OK
Content-Length: 0

JSON request sample

POST /webmaster/api.svc/json/AddQueryParameter?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
Content-Length: 58


{
"siteUrl":"http:\/\/example.com",
"queryParameter":"FROM"
}

JSON response sample

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


{
"d":null
}

See Also

Show: