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