Superfy Platform API Documentation


Get Available Images on a Pin API

Require Authentication

This API is used to get available images on a pin for the company based on combination of deviceID and token.


URL

api/projects/pinimages/:projectID/:projectpinID

Required parameter (in URL)

Required parameter (POST)

Optional paramete (GET)r

All optional parameters use GET method. So it should be embedded in the URL, e.g: api/projects/pins/1?q=tes&o=imageTitle

Example JSON Payload

{
	"deviceID": "ABCD-EFGH-IJKL-MNOP",
	"token": "bb602ab13b8090268cd6e3bb9dfa39e2"
}

Possible return HTTP status code

Return message

{
  "status": "success",
  "message": {
    "current_parameter": "?per_page=999999999&offset=0",
    "next_parameter": "",
    "previous_parameter": "",
    "start": 0,
    "total": 1,
    "lists": [
      {
        "projectpinimageID": 4630,
        "imageTitle": "Ab teltonika",
        "imageDescription": "Primary Image for Ab teltonika",
        "imageURL": "https://wasteinsights-files.s3.ap-southeast-2.amazonaws.com/uploads/projectpinimages/318/a95eda9d7ad52f1b5eeb42906650a6d9.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=1234567890ABcDEfGHIJ%2F20230817%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20230817T101248Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=123456789009876543214c286c6e40b37a46e04525cb28368990e206d741f216",
        "imageOriginalFileName": "",
        "createdDate": 1667319962,
        "projectID": 318,
        "imageURLOri": "https://wasteinsights-files.s3.ap-southeast-2.amazonaws.com/uploads/projectpinimages/318/a95eda9d7ad52f1b5eeb42906650a6d9.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=1234567890ABCDeFGhij%2F20230817%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20230817T101248Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=123456789009876543214c286c6e40b37a46e04525cb28368990e206d741f216",
        "imageURLThumbnail": "https://wasteinsights-files.s3.ap-southeast-2.amazonaws.com/uploads/projectpinimages/318/a95eda9d7ad52f1b5eeb42906650a6d9.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=1234567890AbcDeFGHIJ%2F20230817%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20230817T101248Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=123456789009876543214c286c6e40b37a46e04525cb28368990e206d741f216",
        "creatorUserInformation": {
          "userID": 90,
          "username": "andre@smartsensor.com.au",
          "firstName": "Andre",
          "lastName": "TebakAyo"
        }
      }
    ]
  }
}

Note: use "next_parameter" and "previous_parameter" to go to next or previous result page. Just combine it with the API URL, e.g: "api/projects/pinimages/1/1"+next_parameter or "api/projects/pinimages/1/1"+previous_parameter