Skip to content

Instantly share code, notes, and snippets.

@hyukkwonepic
Last active February 9, 2019 07:52
Show Gist options
  • Save hyukkwonepic/c8e022f1a5d5002d3a552ce88563c30b to your computer and use it in GitHub Desktop.
Save hyukkwonepic/c8e022f1a5d5002d3a552ce88563c30b to your computer and use it in GitHub Desktop.
// 프로젝트의 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 피드가 1번 유저의 user 피드를 팔로우합니다.
userTwoTimelineAggregatedFeed.follow('user', '1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment