Last active
November 23, 2016 11:38
-
-
Save thiagoa/72bc95d6752d48d4b8c88cff14168583 to your computer and use it in GitHub Desktop.
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
// app/assets/javascripts/app/twitter/fetchTimeline.js | |
import { get } from 'axios'; | |
const options = { responseType: 'json' }; | |
export default function fetchTimeline(id) { | |
return get(`/twitter_timeline/${id}`, options).then(response => response.data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment