Follow

API Method: CreateReport()

This method will create a new report object based on the parameters provided.

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>CreateReport</ApiRequestType>
   <ApiRequestVersion>4</ApiRequestVersion>
   <DateCreated>1974-05-20T13:45:30</DateCreated>
   <DeviceType>IPHONE</DeviceType>
   <DeviceModel>3GS</DeviceModel>
   <DeviceId>987654321</DeviceId>
   <RequestType>Graffiti Removal</RequestType>
   <RequestTypeId>10</RequestTypeId>
   <Latitude>34.0632809</Latitude>
   <Longitude>-118.445211</Longitude>
   <Directionality>25 N NW</Directionality>
   <Description>This is my description.</Description>
   <AuthorNameFirst><AuthorNameFirst>
   <AuthorNameLast><AuthorNameLast>
   <AuthorEmail><AuthorEmail>
   <AuthorTelephone><AuthorTelephone>
   <AuthorIsAnonymous>True</AuthorIsAnonymous>
   <KeyValuePairs>
      <KeyValuePair Key="Key1">Value1</KeyValuePair>
      <KeyValuePair Key="Key2">Value2</KeyValuePair>
   </KeyValuePairs>
</CsRequest>
 Xml Node Name  Required? Data Type Default
ApiAuthKey Yes String  
ApiRequestType Yes String  
ApiRequestVersion Yes String  
DateCreated Yes DateTime  
DeviceType Yes DeviceType IPHONE
DeviceModel Yes String  
DeviceId Yes String  
RequestType Yes String  
RequestTypeId Yes String  
Latitude Yes Decimal (WGS84 Compliant)  
Longitude Yes Decimal (WGS84 Compliant)  
Directionality No String  
Description No String  
AuthorNameFirst No String  
AuthorNameLast No String  
AuthorEmail No String  
AuthorTelephone No String  
AuthorIsAnonymous No Boolean False
KeyValuePairs No Collection  

Response

<?xml version="1.0" encoding="utf-16"?>
<CsResponse>
   <Message>[Message Value...]</Message>
   <ReportId>56485</ReportId>
   <AuthorId>75861</AuthorId>
   <ResponseTime>0.1289 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