File view

Documentation for using the OSSN API's GET method to retrieve the complete metadata (file object) for a single uploaded file. The response includes details such as file name, and URL for the OSSN system.

Endpoint:

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
guid Yes integer guid of the file

Example Response

{
    "merchant": "Premium Social Network",
    "url": "http:\/\/local.openteknik.com\/",
    "time_token": 1632343677,
    "payload": {
        "file": {
            "guid": 132,
            "time_created": 1632343672,
            "owner_guid": 1,
            "description": "Desc",
            "title": "somefile.pdf",
            "type": "user",
            "subtype": "file",
            "container_type": "user",
            "container_guid": "1",
			"file_guid" : 123,
            "file:File": "http:\/\/local.openteknik.com\/files\/download\/132",
            "icon": "http:\/\/local.openteknik.com\/components\/Files\/images\/icons\/pdf-icon-128x128.png"
        }
    },
    "code": "100",
    "message": "Request successfully executed"
}

Note
file_guid will be returned that you can use for listing comments / likes for type=entity

Services View All