Follow

API Method: GetReport()

This method will return a report object for a given report id.

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>GetReport</ApiRequestType>
   <ApiRequestVersion>1</ApiRequestVersion>
   <ReportId>12354</ReportId>
   <IncludeComments>False</IncludeComments>
   <IncludeDetails>False</IncludeDetails>
   <IncludeVotes>False</IncludeVotes>
</CsRequest>

Xml Node Name Required? Data Type Default
ApiAuthKey Yes String  
ApiRequestType Yes String  
ApiRequestVersion Yes String  
ReportId Yes Int64  
IncludeComments No Boolean False
IncludeDetails No Boolean False
IncludeVotes No Boolean False

Response

<?xml version="1.0" encoding="utf-16"?>
<CsResponse>
   <Message>Congratulations! The report you requested is below.</Message>
   <Report>
      <Id>12354</Id>
      <DateCreated>12/28/2010 7:44:12 PM</DateCreated>
      <DateUpdated>12/30/2010 9:37:07 PM</DateUpdated>
      <RequestType>Graffiti Removal</RequestType>
      <ImageUrl>http://cdn.freedomspeaks.com/image.jpg</ImageUrl>
      <ImageUrlXl>http://cdn.freedomspeaks.com/image_xl.jpg</ImageUrlXl>
      <ImageUrlLg>http://cdn.freedomspeaks.com/image_lg.jpg</ImageUrlLg>
      <ImageUrlMd>http://cdn.freedomspeaks.com/image_md.jpg</ImageUrlMd>
      <ImageUrlSm>http://cdn.freedomspeaks.com/image_sm.jpg</ImageUrlSm>
      <ImageUrlXs>http://cdn.freedomspeaks.com/image_xs.jpg</ImageUrlXs>
      <City>Glendale</City>
      <State>CA</State>
      <ZipCode>91204</ZipCode>
      <Latitude>34.141696000000000</Latitude>
      <Longitude>-118.265961000000000</Longitude>
      <UrlDetail>http://www.citysourced.com/report/12354/graffiti-removal</UrlDetail>
      <UrlShortened>http://ctysr.cd/i7rTRq</UrlShortened>
      <StatusType>Closed</StatusType>
   </Report>
   <ResponseTime>0.0156247 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