Difference between revisions of "Get Attachment MD5 Sum"

From MyMobileWorkers API
Jump to: navigation, search
(Created page with "== Summary == {| border="1" class="wikitable" ! Get Attachment MD5 Sum ! colspan="2" | |- ! URL | colspan="2" | http://:base_url/:api_path/:version/jobs/attachments/attachm...")
 
 
Line 23: Line 23:
 
| colspan="2" | JSON
 
| colspan="2" | JSON
 
|}
 
|}
−
 
  
 
Returns the MD5 sum of a file attachment
 
Returns the MD5 sum of a file attachment
−
 
−
 
−
== Response Parameters ==
 
−
{| border="1" class="wikitable"
 
−
 
−
! Field
 
−
! Description
 
−
|-
 
−
! username
 
−
| Mobile username
 
−
|-
 
−
|-
 
−
! email_address
 
−
| Email address
 
−
|-
 
−
|-
 
−
! color
 
−
| Hex Colour used within MMW to identify the user (see the calendar)
 
−
|-
 
−
|-
 
−
! engineer_registration_number
 
−
| The users gas safe engineer ID if provided.
 
−
|-
 
−
|}
 
  
 
== Example response ==
 
== Example response ==
 
<source lang="java">
 
<source lang="java">
 
[
 
[
−
{"username":"USER1","email":"ryanmt@nospam.com","color":"D7C863","engineer_registration_number":null},
+
//TODO
−
{"username":"USER2","email":"bobbob@nospam.com","color":"97326A","engineer_registration_number":null},
+
−
{"username":"USER3","email":"sdfasdf@nospam.com","color":"56500D","engineer_registration_number":null},
+
−
{"username":"USER4","email":"asdsdf@nospam.com","color":"C1C355","engineer_registration_number":null},
+
−
{"username":"USER5","email":"asdfds@nospam.com","color":"FA556A","engineer_registration_number":null}
+
 
]
 
]
 
</source>
 
</source>
Line 64: Line 35:
 
== Example curl request ==
 
== Example curl request ==
  
−
http://live.mymobileworkers.com:8080/api/1/mobile_users?api_key=YOURAPIKEY
+
http://live.mymobileworkers.com:8080/api/1/jobs/attachments/attachment/md5?api_key=YOURAPIKEY&file=YOURFILE&job_number=YOURJOBNUMBER

Latest revision as of 09:30, 22 May 2013

[edit] Summary

Get Attachment MD5 Sum
URL http://:base_url/:api_path/:version/jobs/attachments/attachment/md5
Type GET
Params: api_key required
job_number required
file required
Response JSON

Returns the MD5 sum of a file attachment

[edit] Example response

[
//TODO
]

[edit] Example curl request

http://live.mymobileworkers.com:8080/api/1/jobs/attachments/attachment/md5?api_key=YOURAPIKEY&file=YOURFILE&job_number=YOURJOBNUMBER

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox