Skip to content

Instantly share code, notes, and snippets.

@henrikhaugboelle
Created August 27, 2017 16:44
Show Gist options
  • Save henrikhaugboelle/b16ec8e6bb32bd360ac2e2e476717984 to your computer and use it in GitHub Desktop.
Save henrikhaugboelle/b16ec8e6bb32bd360ac2e2e476717984 to your computer and use it in GitHub Desktop.
// Use it like in Metrics.js line 26 and forth for graphs.
// Just use "/feed/stress" instead of "/graphs/stress"
const parameters = {
workspaceId: this.props.params.workspaceId
}
Api.post(`/feed/stress`, parameters).then(({ items }) => {
console.log(items[0].date) // timestamp
console.log(items[0].text) // text
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment