API: Get the user/name of the person who uploaded an asset
Hi, I'm kind of new to Showpad, but I am trying to figure out how to get the name of the asset owner/uploader from the API. I don't see any relevant data in the asset schema, or API calls that connect users to assets.
thank you,
Jesse
-
Official comment
Hi Jesse,
Apologies! I misread the intent of your earlier question. The asset owner/uploader, dare I say content author, is not currently accessible via the API. This is something we are working to rectify in a future release.
I will go ahead and open a new support ticket on your behalf for any follow up questions you may have. Thanks again for using our community.
Kind regards,
Elaine
-
Hi Jesse,
Thank you for your interest in developing for Showpad! The owner/uploader entity that you will be using with the API is also known as the OAuth2 Client.
You will register this client in your Showpad instance with the appropriate set of credentials in order to provide a level of trust. Please check out this article for more details and let me know if you have any other questions.
Kind regards,
Elaine
0 -
I want to know who the owner of an asset is. The name of the user/person who uploaded a document.
I already have the OAuth client working and I am able to pull data from the API.
See the below data response for a demo Showpad asset. There is nothing that associates it to a user. I would assume there would be an UploadedBy field with an id of the user who uploaded the asset.
/*
{
"assetId": "279386a847eb5802fc566cb773916d41",
"divisionId": "4643adcc1621814e91c489b34bb428ed",
"displayName": "Showpad One Pager.pdf",
"status": "active",
"source": "marketing",
"description": null,
"type": "document",
"isSensitive": false,
"isShareable": true,
"isDownloadable": true,
"isDivisionShared": false,
"isAnnotatable": true,
"expiresAt": null,
"releasedAt": null,
"deletedAt": null,
"uploadedAt": "2016-05-19T15:24:30.000Z"
}
{
"meta": {
"code": 200,
"message": "OK",
"serverTime": "2020-03-05T23:33:38+00:00",
"lastUpdatedTime": "2020-03-05T23:33:38+00:00",
"requestRateLimit": 5000,
"requestRateLimitReset": 86400,
"requestsRemaining": 4931
},
"response": {
"id": "279386a847eb5802fc566cb773916d41",
"resourcetype": "Asset",
"href": "https://****.showpad.biz/api/v3/assets/279386a847eb5802fc566cb773916d41",
"name": "Showpad One Pager.pdf",
"originalName": "One_Pager_05.2016_RGB-v2.pdf",
"description": null,
"filetype": "document",
"downloadLink": "https://****.showpad.biz/api/v3/assets/279386a847eb5802fc566cb773916d41/variation/unprocessed/file/v2",
"shortLivedDownloadLink": "https://****.showpad.biz/share-file/1583451218000301707/1bc229104491e931142e7b3e514b5b4bebae991d",
"shortLivedDownloadDuration": 30,
"previewDownloadLink": "https://****.showpad.biz/api/v3/assets/279386a847eb5802fc566cb773916d41/preview/v2.1",
"thumbnailDownloadLink": "https://****.showpad.biz/api/v3/assets/279386a847eb5802fc566cb773916d41/thumbnail/v2.1",
"isSensitive": false,
"isAnnotatable": true,
"isShareable": true,
"isDownloadable": true,
"isDivisionShared": false,
"useOptimized": true,
"fileSize": 426496,
"videoLength": null,
"duration": null,
"views": 5,
"externalId": null,
"externalServiceId": null,
"externalDate": null,
"expiresAt": null,
"releasedAt": null,
"createdAt": "2016-05-13T11:33:38+00:00",
"updatedAt": "2017-05-03T18:14:31+00:00",
"archivedAt": "2017-05-03T18:14:31+00:00",
"liked": false,
"likesCount": 0,
"appLink": "showpad://file/55cf8e127ef8cf94cecff762a6f97f60",
"standardId": "9.v2",
"extension": "pdf",
"lockedPages": [],
"pageCount": 1,
"isPersonal": false,
"hideLabel": false,
"url": null,
"isEditable": false,
"channelTemplateConfigId": null,
"onlyShareEntireDocument": true,
"tags": {
"href": "https://****.showpad.biz/api/v3/assets/279386a847eb5802fc566cb773916d41/tags"
},
"division": {
"id": "4643adcc1621814e91c489b34bb428ed",
"href": "https://****.showpad.biz/api/v3/divisions/4643adcc1621814e91c489b34bb428ed"
},
"assetView": {
"id": "d3e80ecf77296f3ffaf66deb2df3441c",
"href": "https://****.showpad.biz/api/v3/assetviews/d3e80ecf77296f3ffaf66deb2df3441c"
},
"sourceAsset": null,
"uploadedAt": "2016-05-19T15:24:30+00:00",
"allowRenderExternal": true,
"downloadableExternal": [
"original"
],
"downloadableInternal": [
"original"
],
"isSecureShareable": false,
"md5Checksum": "db0e568fcc2cb8df4674d9e54df12471",
"currentChannelTemplateConfigId": null
}
}
*/0
Please sign in to leave a comment.
Comments
3 comments