Image
(준비중입니다.)
특정 유저의 이미지들을 업로드합니다.
POST
https://service-stage.pic-origin.com/api/v2/users/{user_id}/bulk_images
Path Parameters
Name
Type
Description
user_id*
String
유저의 id
ex)8BfE96V8Xc
Headers
Name
Type
Description
Authorization*
String
User ${Token}
Request Body
Name
Type
Description
folder_id
String
이미지가 들어갈 폴더의 id (default = None)
ex) Bm9XRCT48C
latitude
String
위도(default = None)
ex) 37.3595316
longitude
String
경도(default = None)
ex) 127.1052133
address_det
String
동, 호수(default = None)
ex) 101동 1101
image_datas
List[String]
이미지 바이너리 리스트
created_at
String
이미지 생성 날짜(default = None)
ex)20240102_111043
has_det
String
이미지 상세 주소 존재 (대소문자 구분 없이 'true' or 'false') (default=None)
ex) None
is_shared
String
이미지 공유 여부 (대소문자 구분 없이 'true' or 'false') (default = False)
ex)False
message
String
메모 메시지
ex)테스트 메시지
data:{'status_code': 200, 'message': '성공', 'result': {'id': '70844992-83a5-4f7c-8a5a-12b52568f524', 'user_id': 'B227FBWvKJ', 'folder_id': None, 'filename': '20240509_094358_814_20240509_094358_a7375a25050794619187a52398e18fc4_V00.JPEG', 'org_path_url': 'https://pillo-app-dev.s3.amazonaws.com/B227FBWvKJ/images/edit/20240509_094358_814_20240509_094358_a7375a25050794619187a52398e18fc4_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240509%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240509T004359Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b7ea989dd0c299690f9f81df81d8156459c8340bd3878a264511a108f6123c91', 'path_url': 'https://pillo-app-dev.s3.amazonaws.com/B227FBWvKJ/images/edit/20240509_094358_814_20240509_094358_a7375a25050794619187a52398e18fc4_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240509%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240509T004359Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b7ea989dd0c299690f9f81df81d8156459c8340bd3878a264511a108f6123c91', 'lat': None, 'lng': None, 'address_road': None, 'address_land': None, 'address_land_number': None, 'building_name': None, 'address_det': None, 'created_at': '20240509_094358', 'updated_at': '20240509_094358', 'delete_at': None, 'filedata_total': 1, 'is_signed': False, 'is_shared': False, 'has_det': None, 'filesize_mb': 0.08, 'image_resource_type': 'JPEG', 'resolution': '1024x768', 'filedatas': [{'original_image_id': '70844992-83a5-4f7c-8a5a-12b52568f524', 'id': '57e99cb8-1b44-463d-9dad-6d8d5a3ff137', 'path_url': 'https://pillo-app-dev.s3.amazonaws.com/B227FBWvKJ/images/edit/20240509_094358_814_20240509_094358_a7375a25050794619187a52398e18fc4_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240509%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240509T004359Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b7ea989dd0c299690f9f81df81d8156459c8340bd3878a264511a108f6123c91', 'created_at': '20240509_094358', 'hashdata': 'a7375a25050794619187a52398e18fc4', 'filesize_mb': 0.08, 'image_resource_type': 'JPEG', 'resolution': '1024x768'}]}}
data:{'status_code': 200, 'message': '성공', 'result': {'id': '3f3bcd1c-803b-40e6-8928-09e7612e3591', 'user_id': 'B227FBWvKJ', 'folder_id': None, 'filename': '20240509_094359_213_20240509_094359_a7375a25050794619187a52398e18fc4_V00.JPEG', 'org_path_url': 'https://pillo-app-dev.s3.amazonaws.com/B227FBWvKJ/images/edit/20240509_094359_213_20240509_094359_a7375a25050794619187a52398e18fc4_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240509%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240509T004359Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=fe63a8fb2a308ccd64afd86ab593d7e8b7a0310d97fc2ac215d8d41665d96e13', 'path_url': 'https://pillo-app-dev.s3.amazonaws.com/B227FBWvKJ/images/edit/20240509_094359_213_20240509_094359_a7375a25050794619187a52398e18fc4_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240509%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240509T004359Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=fe63a8fb2a308ccd64afd86ab593d7e8b7a0310d97fc2ac215d8d41665d96e13', 'lat': None, 'lng': None, 'address_road': None, 'address_land': None, 'address_land_number': None, 'building_name': None, 'address_det': None, 'created_at': '20240509_094359', 'updated_at': '20240509_094359', 'delete_at': None, 'filedata_total': 1, 'is_signed': False, 'is_shared': False, 'has_det': None, 'filesize_mb': 0.08, 'image_resource_type': 'JPEG', 'resolution': '1024x768', 'filedatas': [{'original_image_id': '3f3bcd1c-803b-40e6-8928-09e7612e3591', 'id': '1be5bfe1-0add-4dfa-80a2-50e78cd0a1d7', 'path_url': 'https://pillo-app-dev.s3.amazonaws.com/B227FBWvKJ/images/edit/20240509_094359_213_20240509_094359_a7375a25050794619187a52398e18fc4_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240509%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240509T004359Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=fe63a8fb2a308ccd64afd86ab593d7e8b7a0310d97fc2ac215d8d41665d96e13', 'created_at': '20240509_094359', 'hashdata': 'a7375a25050794619187a52398e18fc4', 'filesize_mb': 0.08, 'image_resource_type': 'JPEG', 'resolution': '1024x768'}]}}
...
data:END
curl --location --request POST 'https://service-stage.pic-origin.com/api/v2/users/{user_id}/bulk_images' \
--header 'Authorization: User {YOUR_TOKEN}' \
--form 'folder_id="{YOUR_FOLDER_ID}"' \
--form 'latitude="{YOUR_LATITUDE}"' \
--form 'longitude="{YOUR_LONGITUDE}"' \
--form 'address_det="{YOUR_ADDRESS_DET}"' \
--form 'created_at="{YOUR_CREATED_AT}"' \
--form 'is_shared="{YOUR_IS_SHARED}"' \
--form 'has_det="{YOUR_HAS_DET}"' \
--form 'image_datas=@"/{YOUR_PATH_TO_IMAGE}/{YOUR_IMAGE_FILE}"' \
--form 'image_datas=@"/{YOUR_PATH_TO_IMAGE}/{YOUR_IMAGE_FILE}"' \ ...
Last updated