Documentation for using the OSSN API's POST method to upload a new MP3 audio file and create the resource entry within the dedicated Audio component. Submit the file data and metadata via the request to the OSSN platform.
Endpoint
Method:
Parameter:
| Parameter name | Required | Type | Explain |
|---|---|---|---|
| api_key_token | Yes | string | Your API key |
| uguid | Yes | Integer | File owner guid |
Example Response
{
"merchant": "Premium Social Network",
"url": "http:\/\/local.openteknik.com\/",
"time_token": 1632342060,
"payload": {
"mp3": {
"guid": 128,
"time_created": 1632341637,
"owner_guid": 1,
"description": "Desc",
"title": "07 don't.mp3",
"type": "user",
"subtype": "mp3file",
"container_type": "user",
"container_guid": "1",
"file:mp3file": "http:\/\/local.openteknik.com\/mp3\/play\/128\/07.mp3"
}
},
"code": "100",
"message": "Request successfully executed"
}