IWebmasterApi.GetQueryParameters(String) Method

Definition

Get list of url normalization parameters

public:
 System::Collections::Generic::List<Microsoft::Bing::Webmaster::Api::Interfaces::QueryParameter ^> ^ GetQueryParameters(System::String ^ siteUrl);
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebGet(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest)]
public System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.QueryParameter> GetQueryParameters (string siteUrl);
abstract member GetQueryParameters : string -> System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.QueryParameter>
Public Function GetQueryParameters (siteUrl As String) As List(Of QueryParameter)

Parameters

siteUrl
String

Returns

List<QueryParameter>
Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetQueryParameters?siteUrl=http%3a%2f%2fexample.com%2f&apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com

XML response sample

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

<?xml version="1.0"?>
<ArrayOfQueryParameter xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <QueryParameter>
    <Date>2011-08-22T16:40:58.933Z</Date>
    <IsEnabled>false</IsEnabled>
    <Parameter>cart</Parameter>
    <Source>1</Source>
  </QueryParameter>
  <QueryParameter>
    <Date>2011-10-25T10:22:34.368Z</Date>
    <IsEnabled>false</IsEnabled>
    <Parameter>d</Parameter>
    <Source>1</Source>
  </QueryParameter><
</ArrayOfQueryParameter>

JSON request sample

GET /webmaster/api.svc/json/GetQueryParameters?siteUrl=http%3a%2f%2fexample.com%2f&apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com

JSON response sample

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

{"d":
  [
    {"__type":"QueryParameter:#Microsoft.Bing.Webmaster.Api","Date":"/Date(1314031258933)/","IsEnabled":false,"Parameter":"cart","Source":1}
    ,{"__type":"QueryParameter:#Microsoft.Bing.Webmaster.Api","Date":"/Date(1303514052179-0700)/","IsEnabled":false,"Parameter":"sdkfjwroif()*)(sdflsjflskjfslfjsfls","Source":1}
    ,{"__type":"QueryParameter:#Microsoft.Bing.Webmaster.Api","Date":"/Date(1304661388910-0700)/","IsEnabled":false,"Parameter":"sfdsdfs","Source":1}
    ,{"__type":"QueryParameter:#Microsoft.Bing.Webmaster.Api","Date":"/Date(1313688208472-0700)/","IsEnabled":false,"Parameter":"x:test","Source":1}
  ]
}

Remarks

Applies to