IWebmasterApi.AddQueryParameter(String, String) Method

Definition

Add url normalization perameter

public:
 void AddQueryParameter(System::String ^ siteUrl, System::String ^ queryParameter);
[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 AddQueryParameter (string siteUrl, string queryParameter);
abstract member AddQueryParameter : string * string -> unit
Public Sub AddQueryParameter (siteUrl As String, queryParameter As String)

Parameters

siteUrl
String
queryParameter
String
Attributes

Examples

XML request sample

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

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


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

Remarks

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

Applies to