Created
February 9, 2019 06:34
-
-
Save hyukkwonepic/45c621227e3f4bcc13ad9648e90f2b74 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 피드가 1번 유저의 user 피드를 팔로우합니다. | |
userTwoTimelineFeed.follow('user', '1'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment