This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import injectStyle from './path/to/injectStyle'; | |
| export default class SampleComponent extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| const keyframesStyle = ` | |
| @-webkit-keyframes pulse { | |
| 0% { background-color: #fecd6d; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 9 var fs = require('fs'); | |
| 10 var request = require('request'); | |
| 11 var url = 'https://api:[email protected]/v2/YOURDOMAIN/messages'; | |
| 12 var post = request.post(url, function(err, response, body){ | |
| 13 res.send({}); | |
| 14 }); | |
| 15 var form = post.form(); | |
| 16 form.append('from', '[email protected]'); | |
| 17 form.append('to', '[email protected]'); | |
| 18 form.append('subject', 'hey from node.js'); |