클라우드플랫폼 (2) 썸네일형 리스트형 파이썬으로 네이버 object storage(s3)에 파일 2천개 업로드(파일명 변경후) 하는 방법 우선 boto3를 설치한다. pip install boto3 import boto3 from pathlib import Path import sys service_name = 's3' endpoint_url = 'https://kr.object.ncloudstorage.com' # aws에 업로드할경우 삭제 region_name = 'kr-standard' access_key = '엑세스키' secret_key = '시크릿키' if __name__ == "__main__": s3 = boto3.client(service_name, endpoint_url=endpoint_url, aws_access_key_id=access_key, aws_secret_access_key=secret_key) bucket_.. [php] 네이버 클라우드 플랫폼 버킷목록 가져오기 require '/www/aws/aws-autoloader.php'; $accessKey = "key"; $secretKey = "secret"; use Aws\S3\S3Client; use Aws\S3\Exception\S3Exception; $credentials = new Aws\Credentials\Credentials($accessKey, $secretKey); $s3 = new S3Client([ 'version' => 'latest', 'region' => 'kr-standard', 'endpoint' => 'https://kr.object.ncloudstorage.com', 'credentials' => $credentials ]); $result = $s3->listBuckets([]);.. 이전 1 다음