Follow

*Retired* API Method: GetReportsByCityState()

This method has been retired and no longer will return a response. Calling this method will result in a 500 error.

This method will return series of report objects for a given city and state.

Request

Method: POST
Body Parameters:

Output = Xml | Json (Defaults to Xml)
Callback (Optional)
Xml = 
<?xml version="1.0" encoding="utf-8" ?>
<CsRequest>
   <ApiAuthKey>{INSERT YOUR AUTH KEY HERE!}</ApiAuthKey>
   <ApiRequestType>GetReportsByCityState</ApiRequestType>
   <ApiRequestVersion>1</ApiRequestVersion>
   <City>Los Angeles</City>
   <State>CA</State>
   <MaxResults></MaxResults>
   <IncludeDetails>False</IncludeDetails>
   <DateRangeStart></DateRangeStart>
   <DateRangeEnd></DateRangeEnd>
   <CurrentStatus></CurrentStatus>
</CsRequest>
 Xml Node Name  Required? Data Type Default
ApiAuthKey Yes String  
ApiRequestType Yes String  
ApiRequestVersion Yes String  
City Yes String  
State Yes String  
MaxResults No Int32 250
IncludeDetails No Boolean False
DateRangeStart No DateTime  
DateRangeEnd No DateTime  
CurrentStatus No StatusType  

Response

<?xml version="1.0" encoding="utf-16"?>
<CsResponse>
   <Message>Congratulations! The reports you requested are below.</Message>
   <Reports>
      <ReportCount>150</ReportCount>
      <Report>
         <Id>6246</Id>
         <DateCreated>2/2/2011 7:08:45 PM</DateCreated>
         <DateUpdated>2/2/2011 7:16:34 PM</DateUpdated>
         <RequestType>Graffiti</RequestType>
         <ImageUrl>http://www.citysourced.com/image.png</ImageUrl>
         <ImageUrlXl>http://www.citysourced.com/image_xl.png</ImageUrlXl>
         <ImageUrlLg>http://www.citysourced.com/image_lg.png</ImageUrlLg>
         <ImageUrlMd>http://www.citysourced.com/image_md.png</ImageUrlMd>
         <ImageUrlSm>http://www.citysourced.com/image_sm.png</ImageUrlSm>
         <ImageUrlXs>http://www.citysourced.com/image_xs.png</ImageUrlXs>
         <City>Los Angeles</City>
         <State>CA</State>
         <ZipCode>90024</ZipCode>
         <Latitude>34.063290106892300</Latitude>
         <Longitude>-118.445148468018000</Longitude>
         <UrlDetail>http://www.citysourced.com/report/6246/graffiti</UrlDetail>
         <UrlShortened />
         <StatusType>Closed</StatusType>
      </Report>
   </Reports>
   <ResponseTime>0.4370822 Seconds</ResponseTime>
</CsResponse>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk