파일 조회
Request
GET https://api.solapi.com/storage/v1/files/:fileId
파일에 대한 정보를 조회합니다.
Authorization 인증 필요 [?]
계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
storage:read
ACTIVE
ACTIVE
Path Parameters
Name
Description
:fileId
파일 고유 아이디
Samples
getFileInfo.spec.js
Sample Request
http://api.solapi.com/storage/v1/files/FILEID200923042739997Cap4LSbZXlN
Sample Response
{
"kakao": {
"daou": null,
"biztalk": null
},
"type": "DOCUMENT",
"originalName": "파일 원본 이름",
"link": null,
"width": null,
"height": null,
"fileSize": null,
"fileId": "FILEID200923042739997Cap4LSbZXlN",
"accountId": "19013037529548",
"name": "파일 이름",
"url": "https://coolsms.co.kr/godori",
"references": [
{
"handleKey": "REFERE200923042739997VnoE8FbaaQS",
"category": "SENDERID_APPROVAL",
"refId": "REFID5200923042739997abcKVUeabQY"
}
],
"dateCreated": "2020-09-23T03:27:39.999Z",
"dateUpdated": "2020-09-23T03:27:39.999Z"
}
Sample Code
var request = require('request');
var options = {
headers: {
Authorization:
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4'
},
method: 'GET',
json: true,
url: 'http://api.solapi.com/storage/v1/files/FILEID200923042739997Cap4LSbZXlN'
};
request(options, function(error, response, body) {
if (error) throw error;
console.log('result :', body);
});
문서 생성일 : 2020-09-23
Last updated
Was this helpful?