Last active
February 9, 2019 07:36
-
-
Save hyukkwonepic/11f80fa8b69023bc28bc30054db457db to your computer and use it in GitHub Desktop.
This file contains 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
// 프로젝트의 API 키와 시크릿으로 새로운 클라이언트 객체를 생성합니다. | |
const client = stream.connect('API_KEY', 'API_SECRET', 'APP_ID'); | |
// user_timeline 피드에 대해서 2번 유저의 피드 객체를 생성합니다. | |
const userTwoTimelineFeed = client.feed('user_timeline', '2'); | |
// 2번 유저의 user_timeline 피드의 항목을 불러옵니다. | |
userTwoTimelineFeed.get({ | |
start: 0, | |
limit: 10, | |
}); | |
// { | |
// "results": [ | |
// { | |
// "actor": "user:1", | |
// "foreign_id": "", | |
// "id": "a9d1458f-2c3c-11e9-b35d-127939012af0", | |
// "object": "tweet:1", | |
// "origin": "user:1", | |
// "target": "", | |
// "time": "2019-02-09T07:31:07.023502", | |
// "verb": "tweet" | |
// }, | |
// ], | |
// "next": "/api/v1.0/feed/timeline/user:2/", | |
// "duration": "11.61ms" | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment