publicObjectVersion[]GetObjectVersion(stringsearchTerm){// Construct the URL by filling type, id and version.stringurl=string.Format("http://example.org/REST/objects?q={0}",searchTerm);// Create the web request.WebRequestrequest=WebRequest.Create(url);// Fill the authentication information.request.Headers["X-Authentication"]=this.AuthenticationToken;// Receive the response.varresponse=request.GetResponse();// Use DataContractJsonSerializer to deserialize the JSON formatted// ObjectVersion information from the response stream.varserializer=newDataContractJsonSerializer(typeof(Results<ObjectVersion>));varresults=(Results<ObjectVersion>)serializer.ReadObject(response.GetResponseStream());returnresults.Items;}