XE μ O-Auth 2.0 λ‘κ·ΈμΈκ³Ό RESTFul API λ₯Ό μ§μν©λλ€.
- PHP 7.0+
- OpenSSL
- XpressEngine 1.9.6+
- composer
- redis (optional)
ν΄λΉ νλ‘κ·Έλ¨μ MIT λΌμ΄μΌμ€λ₯Ό λ°λ¦ λλ€.
- νμμ νμ κ°μ¬ν©λλ€.
- μ νμν 110-318-788269 μ΄νμ
- λ©μΈμ§ νΉμ λκΈ μμ±μ μλ¦Ό κΈ°λ₯ μ§μ
- μ€μκ° API
- 400 - unsupported_grant_type
- ν΄λΉ νλ‘κ·Έλ¨μ Authorization Code Grant μ Refresh Token Grant λ§ μ§μν©λλ€.
- λ€λ₯Έ grant type μΌλ‘ μμ²μ μΆλ ₯λ©λλ€.
- 400 - invalid_client_id
- client_id κ° λλ½ νΉμ μ‘΄μ¬νμ§ μμ κ²½μ° μΆλ ₯λ©λλ€.
- 400 - invalid_code
- auth_code κ° μλͺ»λκ±°λ λ§λ£ νΉμ revoke λμμ κ²½μ° μΆλ ₯λ©λλ€.
- 400 - invalid_redirect_uri
- callback url μ΄ μλͺ»λμμ κ²½μ° μΆλ ₯λ©λλ€.
- 400 - invalid_refresh_token
- refresh token μ΄ μλͺ»λμμ κ²½μ° μΆλ ₯λ©λλ€.
- 400 - invalid_scope
- κΆν (scope) κ° μλͺ»λμμ κ²½μ° μΆλ ₯λ©λλ€.
- 401 - invalid_client
- client_id κ° μλͺ»λμμ κ²½μ° μΆλ ₯λ©λλ€.
- 401 - invalid_request
- refresh token μ΄ μλͺ»λκ±°λ λ§λ£ νΉμ revoke λμμ κ²½μ° μΆλ ₯λ©λλ€.
- 401 - access_denied
- access token μ΄ μλͺ»λκ±°λ λ§λ£ νΉμ revoke λμμ κ²½μ° μΆλ ₯λ©λλ€.
- 401 - permission_denied
- ν΄λΉ 리μμ€μ μ κ·Όνμ§ λͺ»ν κ²½μ° μΆλ ₯λ©λλ€.
- 404 - resource is gone
- ν΄λΉ 리μμ€κ° μ‘΄μ¬νμ§ μμλ μΆλ ₯λ©λλ€.
- 405 - method_not_allowed
- μ§μνμ§ μλ Request Method
- API End Point μ νμ©λμ§ μλ Method λ‘ μ κ·Όμ μΆλ ₯λ©λλ€.
- 406 - module_not_exists
- μ°κ΄ λͺ¨λμ΄ μ‘΄μ¬νμ§ μμ κ²½μ° μΆλ ₯λ©λλ€.
- 429 - User request limit reached
- νμ©νλ λ²μμ μμ²μ΄ λμ΄κ°μ κ²½μ° μΆλ ₯λ©λλ€.
API λ₯Ό μ¬μ©νκΈ° μν΄μ λ¨Όμ ν΄λΉ μ±μ μ΄μ©λμκ° νμν©λλ€. μ΄μ©λμλ₯Ό λ°λ μ μ μ κ°μΈμ λ³΄λ§ μ¬μ©ν μ μμ΅λλ€.
GET /?module=devcenter&act=dispDevcenterAuthorize&client_id=[μ±μ΄λ¦]&state=[state]
Request
- client_id - νμ / μ± μμ΄λ μ λλ€.
- state - μ΅μ / μ½κ΄ λμ ν callback url λ‘ μ΄λμ κ°μ΄ μ λ¬λ©λλ€. μ΄ κ°μ ν΅ν΄ CSRF 곡격μ λ°©μ΄ν μ μμ΅λλ€.
μ½κ΄ λμ ν Authorization Code μ ν¨κ» Callback URL λ‘ μ΄λνκ² λ©λλ€. μ΄λ Auth Code λ₯Ό μ λ¬νλ©΄ Access Token / Refresh Token μ μ λ¬ λ°μ μ μμ΅λλ€. authorization code λ 10λΆμ μ ν¨μκ°μ κ°μ§λλ€.
POST /?module=devcenter&act=token
Request
- client_id - νμ / μ± μμ΄λ μ λλ€.
- client_secret - νμ / API λΉλ°ν€ μ λλ€.
- redirect_uri - νμ / callback url μ μ§μ ν©λλ€.
- grant_type - νμ / μΈμ¦ νμ μ μ§μ ν©λλ€. authorization_code λ‘ μ λ ₯ν©λλ€.
- code - νμ / 리λ€μ΄λ μ μΌλ‘ λμ΄μ¨ authorization code λ₯Ό μ λ ₯ν©λλ€.
Response
{
"token_type":"Bearer",
"expires_in":7200,
"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImVlNzhjZWViZWNjMTQ2NGRkNmNlODk2OGJmNzFjNzVlMzkxZjNjNTQ4ZTRkMjYyN2YxOTRmNGNiZmFmYzY5MTNiZGJjMmFlMGQwYjcwZDAwIn0.eyJhdWQiOiIwMDA0Ni1DMEpCNS1YOUxGRi03NldOWS1ZQVFMNSIsImp0aSI6ImVlNzhjZWViZWNjMTQ2NGRkNmNlODk2OGJmNzFjNzVlMzkxZjNjNTQ4ZTRkMjYyN2YxOTRmNGNiZmFmYzY5MTNiZGJjMmFlMGQwYjcwZDAwIiwiaWF0IjoxNTIzOTQyMzc4LCJuYmYiOjE1MjM5NDIzNzgsImV4cCI6MTUyMzk0OTU3OCwic3ViIjoiMTUwIiwic2NvcGVzIjpbInJlYWQiLCJ3cml0ZSJdfQ.GBYXav59z7xnTz2_SpqtzFvvtLPy2hl69I06E_tZQ9ZeqnS5mk7aA_2DvIjSgoKsoOXfMKgBl-7se7VGAkDFopcNb3rwimpUt6pXoEQKHNSVwKZqNQ09R0tCPuP8DcUdoAt27QLnwPyDDJnRg7L6Bd3EIKhjLGdwfJlyz-2YbZp8VzluaRDqYrBn8MYdPjUqoZ5_E26btwSj-2ZVl-ucGB-4OlqiZ5lwgCUmvoOJAz4BB5Q1bJ9BH8iPAfdofpQhqStg5kJuq1RodXQz2_ZcpKaTNT5Fe8f1bEnmE4dEHEJuMZ767DNaD8quJCo2VeiCeNo8MU4kA9mcP6XhivugBw",
"refresh_token":"def50200d7bcb8b8882dd90876e5507bfa467a510de0447bd21742ead737e3915d08c698ba09417164eb28b737f654270e2806e9a0621417c4d8f57b2919ed6fcc26b285811b4bf3b3ec4edc93cd7976bf691fa00d8bbf74054fedb4af7fb6b8335a9e62fa06555bc996c04b2f7431280e813409e9f0b4c56f30bf795582ed91742759719f03c9cdfa9af7538c4c905eea231441b4156f0e00daf36d8f96d87ec8f09b7d80071bf1082e2f7cf5f7a821dc05ce9e778ad29b5bcc87d1b4c06e80004ea61bffeba417b1e5fee3b9ca191549789c60e5682476ea8149bb2aa1dbb83c1c26b74017b17a4bfec0c3dff0d0a936d307531cd2dc1bcf09bd821fa32ab2824ce1e2df72a97d0c45caf09a2d2359ee9830017ed3c699d37c6899affd5ab65211005d1a0a5e07c8839e848ac4c77d85ab4403ad8da43b1be37ea4184a2ac64469232678699832770d6b5e09d5ddf4fc4555f859ccd8efec6aa9ca5a7f6530854c5a549e16c6234b752a9f8c43e18675e493f84be463fcaa835b61f28d31b6971ca835994382082d654cb18e"
}
- token_type - ν ν° νμ μ΄ λ¦¬ν΄λ©λλ€.
- expires_in - access token λ§λ£μκ°μ΄ 리ν΄λ©λλ€.
- access_token - access token μ λλ€.
- refresh_token - refresh token μ λλ€.
access token μ 2μκ°μ μ ν¨μκ°μ κ°μ§λλ€. μ ν¨μκ°μ΄ μ§λ κ²½μ° refresh token μ ν΅ν΄ κ°±μ ν μ μμ΅λλ€. refresh token μ 1κ°μμ μ ν¨μκ°μ κ°μ§λλ€.
POST /?module=devcenter&act=token
Request
- client_id - νμ / μ± μμ΄λ μ λλ€.
- client_secret - νμ / API λΉλ°ν€ μ λλ€.
- grant_type - νμ / μΈμ¦ νμ μ μ§μ ν©λλ€. refresh_token μΌλ‘ μ λ ₯ν©λλ€.
- refresh_token - νμ / refresh token μ μ λ ₯ν©λλ€.
Response
{
"token_type":"Bearer",
"expires_in":7200,
"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImVlNzhjZWViZWNjMTQ2NGRkNmNlODk2OGJmNzFjNzVlMzkxZjNjNTQ4ZTRkMjYyN2YxOTRmNGNiZmFmYzY5MTNiZGJjMmFlMGQwYjcwZDAwIn0.eyJhdWQiOiIwMDA0Ni1DMEpCNS1YOUxGRi03NldOWS1ZQVFMNSIsImp0aSI6ImVlNzhjZWViZWNjMTQ2NGRkNmNlODk2OGJmNzFjNzVlMzkxZjNjNTQ4ZTRkMjYyN2YxOTRmNGNiZmFmYzY5MTNiZGJjMmFlMGQwYjcwZDAwIiwiaWF0IjoxNTIzOTQyMzc4LCJuYmYiOjE1MjM5NDIzNzgsImV4cCI6MTUyMzk0OTU3OCwic3ViIjoiMTUwIiwic2NvcGVzIjpbInJlYWQiLCJ3cml0ZSJdfQ.GBYXav59z7xnTz2_SpqtzFvvtLPy2hl69I06E_tZQ9ZeqnS5mk7aA_2DvIjSgoKsoOXfMKgBl-7se7VGAkDFopcNb3rwimpUt6pXoEQKHNSVwKZqNQ09R0tCPuP8DcUdoAt27QLnwPyDDJnRg7L6Bd3EIKhjLGdwfJlyz-2YbZp8VzluaRDqYrBn8MYdPjUqoZ5_E26btwSj-2ZVl-ucGB-4OlqiZ5lwgCUmvoOJAz4BB5Q1bJ9BH8iPAfdofpQhqStg5kJuq1RodXQz2_ZcpKaTNT5Fe8f1bEnmE4dEHEJuMZ767DNaD8quJCo2VeiCeNo8MU4kA9mcP6XhivugBw",
"refresh_token":"def50200d7bcb8b8882dd90876e5507bfa467a510de0447bd21742ead737e3915d08c698ba09417164eb28b737f654270e2806e9a0621417c4d8f57b2919ed6fcc26b285811b4bf3b3ec4edc93cd7976bf691fa00d8bbf74054fedb4af7fb6b8335a9e62fa06555bc996c04b2f7431280e813409e9f0b4c56f30bf795582ed91742759719f03c9cdfa9af7538c4c905eea231441b4156f0e00daf36d8f96d87ec8f09b7d80071bf1082e2f7cf5f7a821dc05ce9e778ad29b5bcc87d1b4c06e80004ea61bffeba417b1e5fee3b9ca191549789c60e5682476ea8149bb2aa1dbb83c1c26b74017b17a4bfec0c3dff0d0a936d307531cd2dc1bcf09bd821fa32ab2824ce1e2df72a97d0c45caf09a2d2359ee9830017ed3c699d37c6899affd5ab65211005d1a0a5e07c8839e848ac4c77d85ab4403ad8da43b1be37ea4184a2ac64469232678699832770d6b5e09d5ddf4fc4555f859ccd8efec6aa9ca5a7f6530854c5a549e16c6234b752a9f8c43e18675e493f84be463fcaa835b61f28d31b6971ca835994382082d654cb18e"
}
- token_type - ν ν° νμ μ΄ λ¦¬ν΄λ©λλ€.
- expires_in - access token λ§λ£μκ°μ΄ 리ν΄λ©λλ€.
- access_token - access token μ λλ€.
- refresh_token - refresh token μ λλ€.
μ¬μ©μμ νλ‘νμ νΈμΆν©λλ€.
GET /?module=devcenter&act=profile
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- member_unique_srl - μ΅μ / νμΈμ κ°μΈμ 보λ₯Ό μ‘°νν λ μ¬μ©νλ ν€μ λλ€.
Response
{
"member_unique_srl": "6jOJl1LBXtOl1lv6MqJBIv6fmf0aGexsvnlvjRPRdmQkyhqAQroaBEIDsUMUA9zUuCNbJ3",
"joined_at": 1487744104,
"allow_mailing": false,
"allow_message": true,
"email_address": "mas***@mono.svn.io",
"user_id": "kyle_li",
"nick_name": "μ λλ‘νΌ",
"blog": ""
}
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- joined_at - κ°μ μΌ μ λλ€.
- allow_mailing - λ©μΌ νμ© μ 무μ λλ€.
- allow_message - λ©μΈμ§ νμ© μ 무μ λλ€.
- email_address - μ΄λ©μΌ μ£Όμμ λλ€.
- user_id - μμ΄λμ λλ€.
- nick_name - λλ€μμ λλ€.
- blog - λΈλ‘κ·Έ μ£Όμμ λλ€.
μ¬μ©μμ μΉκ΅¬λ₯Ό νΈμΆν©λλ€.
GET /?module=devcenter&act=friend
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
Response
{
"count": 12,
"current_page": "1",
"total_page": 2,
"entries": [
{
"member_unique_srl": "6jOJl1LCRuyxA1wyB6GaUAYJrM1EP5FN20fURYzRaK0371Uhn6kfKvG1y5HFes8G7eh9Nx",
"nick_name": "κΉλλ",
"group_srl": 0,
"group_title": null,
"register_at": 1514655325
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- nick_name - λλ€μμ λλ€.
- group_srl - μΉκ΅¬ κ·Έλ£Ήν€μ λλ€.
- group_title - μΉκ΅¬ κ·Έλ£Ή μ΄λ¦μ λλ€.
- register_at - λ±λ‘μΌ μ λλ€.
μΉκ΅¬λ₯Ό λ±λ‘ν©λλ€.
POST /?module=devcenter&act=friend
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- member_unique_srl - νμ / μ¬μ©μμ κ³ μ ν κ°μΈν€λ₯Ό μ λ ₯ν©λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
μΉκ΅¬λ₯Ό μμ ν©λλ€.
DELETE /?module=devcenter&act=friend
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- member_unique_srl - νμ / μ¬μ©μμ κ³ μ ν κ°μΈν€λ₯Ό μ λ ₯ν©λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
μ¬μ©μμ λ©μΈμ§λ₯Ό νΈμΆν©λλ€.
GET /?module=devcenter&act=message
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
- message_srl - μ΅μ / λ©μΈμ§ ν€ μ λλ€. μ§μ μ λ΄μ©μ μ½μ΄μ΅λλ€.
- category - μ΅μ / λ©μΈμ§ νμ μ λλ€. κΈ°λ³Έκ°μ receive (λ°μ λ©μΈμ§) μ΄λ©° send (λ³΄λΈ λ©μΈμ§) / store (λ³΄κ΄ λ©μΈμ§) λ₯Ό μ§μ μ΄ κ°λ₯ν©λλ€.
Response
{
"count": 4,
"current_page": "1",
"total_page": 1,
"entries": [
{
"message_srl": 3701750,
"title": "λ μμκΈ΄λ―",
"member_unique_srl": "6jOJl1LDLVnOseVBcMlgx7qy2d6B7lfrKZ4czpHoH62zJoobuQ2QQFLhy0OJpWKkjh1KI5",
"nick_name": "λν¬",
"is_readed": true,
"register_at": 1511598698,
"readed_at": 1511607866
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- message_srl - λ©μΈμ§ ν€ μ λλ€.
- title - μ λͺ© μ λλ€.
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- nick_name - λλ€μμ λλ€.
- is_readed - λ©μΈμ§ νμΈ μ 무μ λλ€.
- register_at - λ±λ‘μΌ μ λλ€.
- readed_at - νμΈμΌ μ λλ€.
λ©μΈμ§λ₯Ό λ±λ‘ν©λλ€.
POST /?module=devcenter&act=message&member_unique_srl=[memer_unique_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- member_unique_srl - νμ / μ¬μ©μμ κ³ μ ν κ°μΈν€λ₯Ό μ λ ₯ν©λλ€.
- title - νμ / λ©μΈμ§ μ λͺ© μ λλ€.
- content - νμ / λ©μΈμ§ λ΄μ© μ λλ€.
- allow_mail - νμ / λ©μΈμ§λ₯Ό λ©μΌλ‘ μμ νμ©ν κ²μΈμ§ μ νν μ μμ΅λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
λ©μΈμ§λ₯Ό μμ ν©λλ€.
DELETE /?module=devcenter&act=message&message_srl=[message_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- message_srl - νμ / λ©μΈμ§ν€λ₯Ό μ λ ₯ν©λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
μ¬μ©μμ λ‘κ·ΈμΈ κΈ°λ‘μ νΈμΆν©λλ€. (loginlog λͺ¨λμ΄ μ€μΉλμ΄ μμ΄μΌ νΈμΆμ΄ κ°λ₯ν©λλ€.)
GET /?module=devcenter&act=login_histories
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
Response
{
"count": 4456,
"current_page": "1",
"total_page": 149,
"entries": [
{
"log_srl": 4768094,
"address": "1.234.4.18",
"is_success": true,
"platform": "OAuth2",
"browser": "ExCF for Smartphone",
"register_at": 1523947627
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- log_srl - λ©μΈμ§ ν€ μ λλ€.
- address - μμ΄νΌ μ£Όμμ λλ€.
- is_success - λ‘κ·ΈμΈ μ±κ³΅ μ 무μ λλ€.
- platform - νλ«νΌ μ λλ€.
- browser - λΈλΌμ°μ Έ μ λλ€. (OAuthμΌ κ²½μ°λ νμ©ν μ± μ΄λ¦)
- register_at - λ±λ‘μΌ μ λλ€.
ν΄λΉ μ¬μ΄νΈμ κ²μν 리μ€νΈλ€μ κ°μ Έμ΅λλ€.
GET /?module=devcenter&act=sitemap
Response
{
"menuSrl": 65,
"title": "λ©λ΄",
"description": null,
"items": [
{
"text": "μκ²",
"url": "freeboard",
"is_shortcut": "N",
"module": "board',
"browser_title": "μμ κ²μν",
},
...
]
}
- menuSrl - λ©λ΄ν€ μ λλ€.
- title - λ©λ΄λͺ μ λλ€.
- description - λ©λ΄μ λν μ€λͺ μ λλ€.
- items - λ©λ΄ μλ κ²μνκ³Ό νμ΄μ§λ€μ΄ λ΄κΈ΄ λ°°μ΄μ
λλ€.
- text - κ²μν λͺ μ λλ€.
- url - κ²μν μ£Όμμ λλ€.
- is_shortcut - λ¨μ λ§ν¬μΈμ§ νκΈ°ν©λλ€.
- module - κ²μν λͺ¨λμΈμ§ / νμ΄μ§ λͺ¨λμΈμ§ νκΈ°ν©λλ€.
- browser_title - λΈλΌμ°μ νμ΄νμ νμλλ λ΄μ©μ νκΈ°ν©λλ€.
κ²μλ¬Όμ λ³Όλ¬μ΅λλ€. μΌλ°μ μΌλ‘ stream κΆνμ΄ νμνμ§λ§, μμ μ κΈμ μ½μ κ²½μ°μλ read κΆνμΌλ‘ μΆ©λΆν©λλ€.
GET /?module=devcenter&act=article
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- board - μ΅μ / κ²μν μμ΄λμ λλ€. (board λ article_srl νλΌλ©ν° νλλ νμ μ λλ€.)
- article_srl - μ΅μ / κ²μλ¬Ό ν€ μ λλ€.
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
Response
{
"count": 202835,
"current_page": 1,
"total_page": 10142,
"grant": {
"is_site_admin": true,
"manager": true,
"access": true,
"is_admin": true,
"list": true,
"view": true,
"write_document": true,
"write_comment": true,
"consultation_read": true
},
"entries": [
{
"article_srl": 4767813,
"title": "μλ
νμΈμ.",
"nick_name": "μ΄λλ",
"member_unique_srl": "6jOJl1LBXmY4mFDgzPmPXDlzXOttUy02z5PtFCTlJHzy60lFttaZMPNTOyyoYPDLxQx9nF",
"member_profile_image": null,
"member_signature": null,
"comment_count": 0,
"readed_count": 21,
"voted_count": null,
"is_notice": true,
"register_at": 1518520846,
"updated_at": 1518520858
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- grant - κΆν λ΄μ© μ
λλ€.
- is_site_admin - μ¬μ΄νΈ κ΄λ¦¬μμΈμ§ νκΈ°ν©λλ€.
- manager - ν΄λΉ κ²μν κ΄λ¦¬ κΆνμ΄ μλμ§ νκΈ°ν©λλ€.
- access - μ κ·Ό κ°λ₯νμ§ νκΈ°ν©λλ€.
- is_admin - κ·Έλ£Ή κ΄λ¦¬μμΈμ§ νκΈ°ν©λλ€.
- list - 리μ€νΈ 보기 κΆνμ΄ μλμ§ νκΈ°ν©λλ€.
- view - κΈ λ³΄κΈ° κΆνμ΄ μλμ§ νκΈ°ν©λλ€.
- write_document - κΈ μ°κΈ° κΆνμ΄ μλμ§ νκΈ°ν©λλ€.
- write_comment - λκΈ λ¬κΈ° κΆνμ΄ μλμ§ νκΈ°ν©λλ€.
- consultation_read - μλ΄κΈ μ½κΈ° κΆνμ΄ μλμ§ νκΈ°ν©λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- article_srl - κ²μλ¬Ό ν€ μ λλ€.
- title - μ λͺ© μ λλ€.
- nick_name - λλ€μμ λλ€.
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- member_profile_image - νλ‘ν μ΄λ―Έμ§μ λλ€.
- member_signature - νμ μλͺ μ λλ€.
- comment_count - λκΈ μ μ λλ€.
- readed_count - μ‘°ν μ μ λλ€.
- voted_count - μΆμ² μ μ λλ€.
- is_notice - κ³΅μ§ μ 무μ λλ€.
- register_at - λ±λ‘μΌ μ λλ€.
- updated_at - μμ μΌ μ λλ€.
κ²μλ¬Όμ λ±λ‘ν©λλ€.
POST /?module=devcenter&act=article&board=[board]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- board - νμ / κ²μν ID μ λλ€.
- title - νμ / κ²μλ¬Ό μ λͺ© μ λλ€.
- content - νμ / κ²μλ¬Ό λ΄μ© μ λλ€.
- allow_comment - μ΅μ / λκΈ νμ© μ 무μ λλ€. κΈ°λ³Έμ 0 μ λλ€.
- allow_trackback - μ΅μ / νΈλλ°± νμ© μ 무μ λλ€. κΈ°λ³Έμ 0 μ λλ€.
- allow_notify - μ΅μ / λκΈ μμ±μ λ©μΈμ§ μλ¦Ό νμ© μ 무μ λλ€. κΈ°λ³Έμ 0 μ λλ€.
- tags - μ΅μ / κ΄λ ¨ νκ·Έλ₯Ό μμ±ν©λλ€. κ΅¬λΆ κΈ°νΈλ , μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
κ²μλ¬Όμ μμ ν©λλ€.
PUT /?module=devcenter&act=article&article_srl=[article_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
- title - νμ / κ²μλ¬Ό μ λͺ© μ λλ€.
- content - νμ / κ²μλ¬Ό λ΄μ© μ λλ€.
- allow_comment - μ΅μ / λκΈ νμ© μ 무μ λλ€. κΈ°λ³Έμ 0 μ λλ€.
- allow_trackback - μ΅μ / νΈλλ°± νμ© μ 무μ λλ€. κΈ°λ³Έμ 0 μ λλ€.
- allow_notify - μ΅μ / λκΈ μμ±μ λ©μΈμ§ μλ¦Ό νμ© μ 무μ λλ€. κΈ°λ³Έμ 0 μ λλ€.
- tags - μ΅μ / κ΄λ ¨ νκ·Έλ₯Ό μμ±ν©λλ€. κ΅¬λΆ κΈ°νΈλ , μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
κ²μλ¬Όμ μμ ν©λλ€.
DELETE /?module=devcenter&act=article&article_srl=[article_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
λκΈμ λ³Όλ¬μ΅λλ€.
GET /?module=devcenter&act=comment
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
Response
{
"count": 4,
"current_page": 1,
"total_page": 1,
"entries": [
{
"comment_srl": 4767853,
"article_srl": 4767847,
"nick_name": "λλκ³€λ§μ€ν°",
"member_unique_srl": "6jOJl1LBY6umrF39uda6LufXfB1ICt7ZYAnHFYnosBQmkGzbtNJLUP3NgN4LIQCUvXKYWX",
"member_profile_image": null,
"member_signature": null,
"content": "<div class="xe_content">λλκ³€μ΄λ κ΄κ³μλκ±° μλκΉμ</div>",
"depth": 0,
"voted_count": 0,
"register_at": 1518521179,
"updated_at": 1518521179
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- comment_srl - λκΈ ν€ μ λλ€.
- article_srl - κ²μλ¬Ό ν€ μ λλ€.
- nick_name - λλ€μμ λλ€.
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- member_profile_image - νλ‘ν μ΄λ―Έμ§μ λλ€.
- member_signature - νμ μλͺ μ λλ€.
- content - λκΈ λ΄μ© μ λλ€.
- depth - λλκΈ κΉμ΄ μ λλ€.
- voted_count - μΆμ² μ μ λλ€.
- register_at - λ±λ‘μΌ μ λλ€.
- updated_at - μμ μΌ μ λλ€.
λκΈμ λ±λ‘ν©λλ€.
POST /?module=devcenter&act=comment&article_srl=[article_srl]&parent_srl=[parent_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
- parent_srl - μ΅μ / μμ λκΈ (λλκΈ κΈ°λ₯) ν€ μ λλ€.
- content - νμ / λκΈ λ΄μ© μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
λκΈμ μμ ν©λλ€.
PUT /?module=devcenter&act=comment&article_srl=[article_srl]&comment_srl=[comment_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
- comment_srl - νμ / λκΈ ν€ μ λλ€.
- content - νμ / λκΈ λ΄μ© μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
λκΈμ μμ ν©λλ€.
DELETE /?module=devcenter&act=comment&article_srl=[article_srl]&comment_srl=[comment_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
- comment_srl - νμ / λκΈ ν€ μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
μ€ν¬λ©ν κ²μλ¬Όμ λ³Όλ¬μ΅λλ€.
GET /?module=devcenter&act=scrap
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
Response
{
"count": 202835,
"current_page": 1,
"total_page": 10142,
"entries": [
{
"article_srl": 4767847,
"title": "λ°±μΌμμ΄ λ‘λκΉ",
"nick_name": "μμ΄μ ",
"member_unique_srl": "6jOJl1LBXtOl1lv6MqJBIv6fmf0aGexsvnlvjRPRdmQkyhqAQroaBEIDsUMUA9zUuCNbJ3",
"member_profile_image": null,
"member_signature": null,
"comment_count": null,
"readed_count": null,
"voted_count": null,
"is_notice": null,
"register_at": 1522649834,
"updated_at": null
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- article_srl - κ²μλ¬Ό ν€ μ λλ€.
- title - μ λͺ© μ λλ€.
- nick_name - λλ€μμ λλ€.
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- member_profile_image - νλ‘ν μ΄λ―Έμ§μ λλ€.
- member_signature - νμ μλͺ μ λλ€.
- comment_count - λκΈ μ μ λλ€.
- readed_count - μ‘°ν μ μ λλ€.
- voted_count - μΆμ² μ μ λλ€.
- is_notice - κ³΅μ§ μ 무μ λλ€.
- register_at - λ±λ‘μΌ μ λλ€.
- updated_at - μμ μΌ μ λλ€.
μ€ν¬λ© κ²μλ¬Όμ λ±λ‘ν©λλ€.
POST /?module=devcenter&act=scrap&article_srl=[article_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
μ€ν¬λ© κ²μλ¬Όμ μμ ν©λλ€.
DELETE /?module=devcenter&act=scrap&article_srl=[article_srl]
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- article_srl - νμ / κ²μλ¬Ό ν€ μ λλ€.
Response
{
"status": true
}
- status - μμ² μ±κ³΅μ true λ‘ λ¦¬ν΄λ©λλ€.
λ΄κ° μμ±ν κ²μλ¬Όμ λ³Όλ¬μ΅λλ€.
GET /?module=devcenter&act=my_article
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
Response
{
"count": 202835,
"current_page": 1,
"total_page": 10142,
"entries": [
{
"article_srl": 4767847,
"title": "λ°±μΌμμ΄ λ‘λκΉ",
"nick_name": "μμ΄μ ",
"member_unique_srl": "6jOJl1LBXtOl1lv6MqJBIv6fmf0aGexsvnlvjRPRdmQkyhqAQroaBEIDsUMUA9zUuCNbJ3",
"member_profile_image": null,
"member_signature": null,
"comment_count": null,
"readed_count": null,
"voted_count": null,
"is_notice": null,
"register_at": 1522649834,
"updated_at": null
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- article_srl - κ²μλ¬Ό ν€ μ λλ€.
- title - μ λͺ© μ λλ€.
- nick_name - λλ€μμ λλ€.
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- member_profile_image - νλ‘ν μ΄λ―Έμ§μ λλ€.
- member_signature - νμ μλͺ μ λλ€.
- comment_count - λκΈ μ μ λλ€.
- readed_count - μ‘°ν μ μ λλ€.
- voted_count - μΆμ² μ μ λλ€.
- is_notice - κ³΅μ§ μ 무μ λλ€.
- register_at - λ±λ‘μΌ μ λλ€.
- updated_at - μμ μΌ μ λλ€.
λ΄κ° μμ±ν λκΈμ λ³Όλ¬μ΅λλ€.
GET /?module=devcenter&act=comment
Request Header
- Authorization - νμ / Bearer [access_token] νμμΌλ‘ 보λ λλ€.
Request
- page - μ΅μ / νμ΄μ§ νλΌλ©ν°μ λλ€.
Response
{
"count": 4,
"current_page": 1,
"total_page": 1,
"entries": [
{
"comment_srl": 4767853,
"article_srl": 4767847,
"nick_name": "λλκ³€λ§μ€ν°",
"member_unique_srl": "6jOJl1LBY6umrF39uda6LufXfB1ICt7ZYAnHFYnosBQmkGzbtNJLUP3NgN4LIQCUvXKYWX",
"member_profile_image": null,
"member_signature": null,
"content": "<div class="xe_content">λλκ³€μ΄λ κ΄κ³μλκ±° μλκΉμ</div>",
"depth": 0,
"voted_count": 0,
"register_at": 1518521179,
"updated_at": 1518521179
},
...
]
}
- count - μ΄ row μμ λλ€.
- current_page - νμ¬ page μ λλ€.
- total_page - μ΄ page μ μ λλ€.
- entries - νμ¬ row κ° λ΄κΈ΄ λ°°μ΄μ
λλ€.
- comment_srl - λκΈ ν€ μ λλ€.
- article_srl - κ²μλ¬Ό ν€ μ λλ€.
- nick_name - λλ€μμ λλ€.
- member_unique_srl - κ³ μ ν κ°μΈν€μ λλ€.
- member_profile_image - νλ‘ν μ΄λ―Έμ§μ λλ€.
- member_signature - νμ μλͺ μ λλ€.
- content - λκΈ λ΄μ© μ λλ€.
- depth - λλκΈ κΉμ΄ μ λλ€.
- voted_count - μΆμ² μ μ λλ€.
- register_at - λ±λ‘μΌ μ λλ€.
- updated_at - μμ μΌ μ λλ€.