Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notify reward email #99

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

notify reward email #99

wants to merge 5 commits into from

Conversation

ae2079
Copy link
Collaborator

@ae2079 ae2079 commented Jun 19, 2024

use notification center service for sending email

@ae2079 ae2079 requested a review from mohammadranjbarz June 19, 2024 21:03
@divine-comedian
Copy link
Collaborator

divine-comedian commented Jul 22, 2024

ref Giveth/giveth-dapps-v2#4194

@ae2079 ae2079 requested a review from aminlatifi July 24, 2024 00:19
@aminlatifi
Copy link
Member

@ae2079 Thanks Ali, can you put a sample email picture here? I want to know how the final email will look like.

@ae2079
Copy link
Collaborator Author

ae2079 commented Jul 24, 2024

@ae2079 Thanks Ali, can you put a sample email picture here? I want to know how the final email will look like.

image
I test it directly through notification API with this curl:

curl --location 'https://notification.serve.giveth.io/v1/thirdParty/notifications' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic bm90aWZ5cmV3YXJkOmtSbW1HTkFpWnZZRnFqbklONzVLdEFxU3JGQ1RzRVBJ' \
--data-raw '{
  "eventName": "Notify reward amount",
  "sendEmail": true,
  "sendSegment": true,
  "creationTime": 1667992708000,
  "segment": {
    "payload": {
       "round": 10,
       "date": "1667992708000",
       "amount": "12134",
       "contractAddress": "0xsfglsjfdflk",
       "farm": "test farm",
       "message": "test message",
       "network": "ethereum",
       "script": "test script",
       "transactionHash": "test txhash",
       "email": "[email protected]"
    }
  }
}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants