Created
February 9, 2019 07:57
-
-
Save hyukkwonepic/306f4dfa8188ec878045c5f852443697 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_aggregated 피드에 대해서 2번 유저의 피드 객체를 생성합니다. | |
const userTwoTimelineAggregatedFeed = client.feed('user_timeline_aggregated', '2'); | |
// 2번 유저의 user_timeline_aggregated 피드의 항목을 불러옵니다. | |
userTwoTimelineAggregatedFeed.get({ | |
start: 0, | |
limit: 10, | |
}); | |
// { | |
// "results": [ | |
// { | |
// "activities": [ | |
// { | |
// "actor": "user:1", | |
// "foreign_id": "", | |
// "id": "862e660e-2955-11e9-9cd2-127939012af0", | |
// "object": "tweet:1", | |
// "origin": "user:1", | |
// "target": "", | |
// "time": "2019-02-05T14:51:31.165749", | |
// "verb": "tweet" | |
// } | |
// ], | |
// "activity_count": 1, | |
// "actor_count": 1, | |
// "created_at": "2019-02-05T14:51:31.172204", | |
// "group": "tweet_2019-02-05", | |
// "id": "862f623d-2955-11e9-8080-8000571478c5", | |
// "updated_at": "2019-02-05T14:51:31.172204", | |
// "verb": "tweet" | |
// } | |
// ], | |
// "next": "/api/v1.0/feed/timeline_aggregated/jule/, | |
// "duration": "11.70ms" | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment