Effortlessly connect and extend functionalities with our versatile APIs and integrations
JS
sendRecognition.js
MD
README.md
.gitignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require('axios').post('https://api.happily.ai/recognition', {
recipient: 'jane@acme.co',
message: 'Congratulations on completing the ' + {{courseName.title}} + 'as part of your learning & development journey!',
core_value: 'Continuous Learning'
}, {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
})
.then(response => console.log('Recognition sent:', response.data))
.catch(error => console.error('Error:', error.response?.data || error.message));
LF
Line 5:36
UTF8
2 spaces
main