Re(6): Email Sender(Notification)
Author
박창희(한국)
Date
2024-11-10 09:58
Views
8
//24-11-10(일) 요약
진행사항 :
Endpoint 생성해서 frontend에서 endpoint data를 get 하는 것 까지는 완성함.
잔여사항 :
Modal Dialog에서 버튼을 클릭하여 메일을 송부할 수 있도록 해야 하는 핸들러 설정 필요.
핸들러 설정 이후에는 메일 송부 Class에 값을 넘겨서 해당 처리는 AWS Service에서 진행하면 문제 없을듯.
=> 처리 완료. 카카오톡 이미지 버튼 등만 필터링 하면 이슈가 프로덕션으로 넘겨도 될듯 함.

Parent Title : Re(5): Email Sender(Notification)
Author : 박창희(한국)
Created Date : 24-11-03 09:44 / Last Updated Date : 24-11-03 13:19
2024-11-03(일) Setting register route and endpoint technical documentation
Adding Custom Endpoints (Routes and Endpoint) :
https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/
https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/
A route can be multiple endpoint associeated with it.
Route examples :
http://example.com/wp/v2/post/123
route : http://example.com
namespace : wp/v2
https://ourawesomesite.com/wp-json/hell-world/v1/phase
route :
https://ourawesomesite.com/wp-json
returns all of the variable information for the API
All routes should be built onto this route
the wp-json portion can be changed, but in general, its is advised to keep it the same.
namespace (vendor portion/version) : hell-world/v1
Resource Paths (endpoint) : phase
If not wp-json activated in pretty permalink, use follwing url.
https://ourawesomesite.com?rest_route=/hell-world/v1/phase

https://example.com/myshop/v1/products
route : https://example.com/
namespace : myshop/v1
Resource Path : products
https://example.com/products
this will cause serious conflict.
no namespace : bad practice, this will cause potential conflict between resource
For example : adding Get endpoint
functions :
rest_api_init : action hook
register_rest_route (1st arg, 2nd arg, 3rd arg)
1st arg :
namespace to provide group our routes (e.g hello-world/v1)
2nd arg :
resource path (e.g phase)
3nd arg :
permission callback
route : https://ourawesomesite.com/wp-json/
endpoint : https://ourawesomesite.com/wp-json/hell-world/v1/phase
/**
* This is our callback function that embeds our phrase in a WP_REST_Response
*/
function prefix_get_endpoint_phrase() {
// rest_ensure_response() wraps the data we want to return into a WP_REST_Response, and ensures it will be properly returned.
return rest_ensure_response( 'Hello World, this is the WordPress REST API' );
}
/**
* This function is where we register our routes for our example endpoint.
*/
function prefix_register_example_routes() {
// register_rest_route() handles more arguments but we are going to stick to the basics for now.
register_rest_route( 'hello-world/v1', '/phrase', array(
// By using this constant we ensure that when the WP_REST_Server changes our readable endpoints will work as intended.
'methods' => WP_REST_Server::READABLE,
// Here we register our callback. The callback is fired when this endpoint is matched by the WP_REST_Server class.
'callback' => 'prefix_get_endpoint_phrase',
) );
}
add_action( 'rest_api_init', 'prefix_register_example_routes' );
- To be continued -
Parent Title : Re(4): Email Sender(Notification)
Author : 박창희(한국)
Created Date : 24-10-20 06:39 / Last Updated Date : 24-10-21 05:47
2024-10-21(월) 방향설정
1. delphi-email-sender 완료 필요
2. 외부에서 정보를 어떻게 읽어 가는지 확인 필요함.
플러그인 excelsheet-wppost-restapi.php 가져올 것.
WP_RESEST_RESPONSE를 활용해서 접근 중 : Excelsheet-wppost-restapi : Get Method Code
3. 정보를 다 가져온 후 Modal Dialog에서는 수정 없이 View로만 보여줄 것.
2024-10-20(일) 진행사항 업데이트
Kboard Editor 메뉴에 이메일을 버튼을 넣어서 개발 POC 완료
Kboard에 진입하지 않고, View mode 환경에서 Email 송부할 수 있도록 변경 중.
소스코드 : BitBucket 통해서 클라우드로 공유.
나머지 내용은 핵심 요약 부분을 참조할 것.
Parent Title : Re(2): Re:Kboard > Email Notification
Author : changhee1220
Created Date : 24-09-04 00:23 / Last Updated Date : 24-10-20 06:34
// 핵심요약
구분 | 설명 |
#email_plugin_naming | 이메일 플러그인 어떻게 구현할지 구상 |
#email_plugin_ux | 이메일 플러그인 진입 UI를 어떻게 할지 구상. |
#email_template | 이메일 탬플릿 |
#kboard_event_handling | 이메일이 자동으로 가는 시점에 대한 이벤트 핸들러 |
#aws_email_sdk_document | AWS Email API Reference Manual |
wp-cli scaffold | 플러그인 boiler plate 코드 만드는 법 |
2024-09-04(수) 정보 공유 (이메일, 메신저 공유에 대한 구상)
1단계 : 이메일 알람 (본문 복사 후 송부, 링크아님 )
=> Plugin Naming : Post_Email_Sender / by Delphi Team
=> 기존에 delphizon.com에서 개발해 둔 email source 코드를 활용할 것.
=> 이름을 delphi-email-sender으로 변경 (같은 계열 회사 이름, 플러그인 이름은 단순하게 작성)
2단계 : 카카오톡 알람 (특정분야 답글/결재 시 자동으로 알람 송부) :
=> Plugin Naming : Post_Kakao_notification / by Delphi Team.
=> 2024-10-06(일) 카카오톡 플러그인은 이미 개발된 플러그인이 있어서 대체함.
Parent Title : Re(1): Re:Kboard > Email Notification
Author : changhee1220
Created Date : 24-03-06 22:45 / Last Updated Date : 24-03-06 22:45
2024-03-26(화) 이메일 공유에 대한 계획
- 이메일 버튼을 명시적으로 두고, 사용자그룹 또는 사용자를 선택해서 보내도록 할 것.
=> 2024-10-06(일) 이메일은 정보를 정확하게 보내는 연습을 하는 용으로도 나쁘지 않음.
- 추가로, 이메일 보다는 메신저 API를 통해서 인터페이스 하는 것이 좀더 사용자 친화적
(메신저 데이터는 휘발성이 강하고, 해당 순간에는 더 집중력을 주고 있음)
Parent Title : Re:Kboard > Email Notification
Author : changhee1220
Created Date : 24-01-14 09:28 / Last Updated Date : 24-01-14 09:28
이메일 발신 양식
ㅁ 이메일 송신자 : admin@delphizon.com
ㅁ 이메일 전달 : AWS / SES (Simple Email Service)
ㅁ 수신자 : 워드프레스 회원 정보에 있는 이메일로 송부
ㅁ 추가 필요사항 :
- wp_mail 또는 kboard_mail Class를 분석하고, 이를 Knox API를 활용한 메일 발송시 함수간
Mapping을 어떻게 할지 적용 필요.

Parent Title : Kboard > Email Notification
Author : changhee1220
Created Date : 23-09-14 22:48 / Last Updated Date : 23-09-14 22:56
ㅁ 댓글 작성시 : https://www.cosmosfarm.com/threads/document/37550
ㅁ 최근게시글 및 댓글 작성시 : https://www.cosmosfarm.com/threads/document/39804
ㅁ https://github.com/cosmosfarm/KBoard-wordpress-plugin/blob/master/plugins/kboard/class/KBMail.class.php
AWS Email SDK Reference Document
Amazon Simple Email Service : Developer Guide