User
ํน์ ์ ์ ๋ฅผ ์กฐํํฉ๋๋ค.
GET
https://service-stage.pic-origin.com/api/v1/users/{user_id}
Path Parameters
Name
Type
Description
user_id*
String
์ ์ ์ id
ex)8BfE96V8Xc
Headers
Name
Type
Description
Authorization*
String
User ${Token}
{
"status_code": 200,
"message": "์ฑ๊ณต",
"result": {
"id": "4NmTQ2UbCt",
"platform_id": "AFF6yESsSa",
"platform_user_id": "1",
"created_at": "20240304_160340"
}
}
curl --location 'https://service-stage.pic-origin.com/api/v1/users/{user_id}' \
--header 'Authorization: User {YOUR_TOKEN}'
ํน์ ์ ์ ์ ์ ๋ณด๋ฅผ ์กฐํํฉ๋๋ค.
GET
https://service-stage.pic-origin.com/api/v1/users/{user_id}/info
Path Parameters
Name
Type
Description
user_id*
String
์ ์ ์ id
ex)8BfE96V8Xc
Headers
Name
Type
Description
Authorization*
String
User ${Token}
{
"status_code": 200,
"message": "์ฑ๊ณต",
"result": {
"image_count": 7,
"total_filesize_mb": 0.88,
"max_storage_mb": 40000
}
}
curl --location --request GET 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/info' \
--header 'Authorization: User {YOUR_TOKEN}'
ํน์ ์ ์ ์ ์ ๋ณด๋ฅผ ์์ ํฉ๋๋ค.
PUT
https://service-stage.pic-origin.com/api/v1/users/{user_id}
Path Parameters
Name
Type
Description
user_id*
String
์ ์ ์ id
ex)8BfE96V8Xc
Headers
Name
Type
Description
Authorization*
String
User ${Token}
Request Body
Name
Type
Description
max_storage_mb
String
์ ์ ์ ์ต๋ ์คํ ๋ฆฌ์ง ์ฌ์ฉ ๊ฐ๋ฅ๋(MB ๋จ์)
ex) 30720
{
"status_code": 200,
"message": "์ฑ๊ณต",
"result": {
"image_count": 7,
"total_filesize_mb": 0.88,
"max_storage_mb": 30720
}
}
curl --location --request PUT 'https://service-stage.pic-origin.com/api/v1/users/{user_id}' \
--header 'Authorization: User {YOUR_TOKEN}' \
--form 'max_storage_mb="{MAX_STORAGE_MB}"'
ํน์ ์ ์ ์ ์ ๋ณด๋ฅผ ์ญ์ ํฉ๋๋ค.
DELETE
https://service-stage.pic-origin.com/api/v1/users/{user_id}
Path Parameters
Name
Type
Description
user_id*
String
์ ์ ์ id
ex)8BfE96V8Xc
Headers
Name
Type
Description
Authorization*
String
User ${Token}
{
"status_code": 200,
"message": "์ฑ๊ณต",
"result": null
}
curl --location --request DELETE 'https://service-stage.pic-origin.com/api/v1/users/{user_id}' \
--header 'Authorization: User {YOUR_TOKEN}'
Last updated