Group 샘플 예제

Group List

  • REQUEST (Group List)
curl --request GET \
     --url https://apis.openapi.sk.com/nugufacecan/v1/group \
     --header 'Accept: application/json' \
     --header 'app-id: ssafdf-sdfszzz-jsjdfs00-s9f7a' \
     --header 'appKey: jz0zdsf-whjs/jxzo7hc9shkla'
  • RESPONSE (Group List)
{
   [
       {
         "group_id": "ABCDE01234",
         "group_name": "cu_sunae1dong"
       },
       {
        "group_id": "ABCDE01234",
        "group_name": "happy_mart"
       }
  ]
}

Group Create

  • REQUEST (Group Create)
curl --request POST \
     --url https://apis.openapi.sk.com/nugufacecan/v1/group \
     --header 'Accept: application/json' \
     --header 'app-id: ssafdf-sdfszzz-jsjdfs00-s9f7a' \
     --header 'appKey: jz0zdsf-whjs/jxzo7hc9shkla' \
     --header 'group-name: cu_sunae3dong'
  • RESPONSE (Group Create)
{
    "group_id": "ABCDE01234",
    "group_name": "cu_sunae3dong"
}

Group Delete

  • REQUEST (Group Delete)
curl --request DELETE \
     --url https://apis.openapi.sk.com/nugufacecan/v1/group/ABCDE01234 \
     --header 'Accept: application/json' \
     --header 'app-id: ssafdf-sdfszzz-jsjdfs00-s9f7a' \
     --header 'appKey: jz0zdsf-whjs/jxzo7hc9shkla'
  • RESPONSE (Group Delete)

Status Code

Description

200

Group 삭제 성공

400

Group 삭제 실패