inputFile (File Filter)
    • PDF

    inputFile (File Filter)

    • PDF

    Article Summary

    개요

    • inputFile API 는 "File Safer"의 "File Filter"에서 제공하는 기능으로 분석을 하기 위해 파일을 전송하는 API입니다.
    • 해당 API는 네이버 클라우드 플랫폼에서 사용하는 IAM인증 및 API Gateway를 통해 사용하실 수 있습니다.

    요청

    MethodRequest URI
    POSThttps://filesafer.apigw.ntruss.com/filefilter/v1/inputFile
    FormatMultipart-form

    요청 헤더

    헤더명설명
    x-ncp-apigw-timestamp1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타낸 것
    API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
    x-ncp-apigw-api-keyAPI Gateway에서 발급받은 키
    x-ncp-iam-access-key네이버 클라우드 플랫폼에서 발급받은 API Key 또는 IAM에서 발급받은 AccessKey
    x-ncp-apigw-signature-v2요청 경로 및 헤더를 AccessKey와 맵핑되는 SecretKey로 암호화한 서명으로
    HMAC 암호화 알고리즘은 HmacSHA256 사용

    IAM 인증이 필요한 API 호출하기를 참조
    acceptjson을 명시함
    application/json
    Content-Typemultipart 임을 명시함
    multipart/form-data

    요청 파라미터

    파라미터명필수 여부타입설명
    fileYesfile분석 요청 대상 파일 (전송 대상 파일)
    archivePasswordNostring압축 패스워드

    응답

    응답 바디

    필드명필수 여부타입설명
    returnCodeYesstring요청에 대한 처리 결과 코드
    returnMessageYesstring요청에 대한 처리 결과 메시지

    예시

    요청 예시

    curl -X POST "https://filesafer.apigw.ntruss.com/filefilter/v1/inputFile"
       -H "accept: application/json"
       -H "Content-Type: multipart/form-data"
       -H "x-ncp-apigw-api-key: {x-ncp-apigw-api-key}"
       -H "x-ncp-iam-access-key: {x-ncp-iam-access-key}"
       -H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}"
       -H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
       -d {"archivePassword":{password},"file":{binary}}
    

    응답 예시

    {
      "returnCode": "0",
      "returnMessage": "success"
    }
    

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.