AWS를 가입하고 EC2 인스턴스를 생성하는 과정은 이전에 공부하며 기록했던 글의 링크로 대신하겠다. https://github.com/hong-sing/springboot-webservice/wiki/14.-AWS-%EC%84%9C%EB%B2%84-%ED%99%98%EA%B2%BD 14. AWS 서버 환경 스프링 부트와 AWS로 혼자 구현하는 웹 서비스. Contribute to hong-sing/springboot-webservice development by creating an account on GitHub. github.com EC2 서버에 접근하는 방법이다. https://github.com/hong-sing/springboot-webservice/wiki/15.-EC2-%EC%84%9C%E..
https://summernote.org/ Summernote - Super Simple WYSIWYG editor Super Simple WYSIWYG Editor on Bootstrap Summernote is a JavaScript library that helps you create WYSIWYG editors online. summernote.org 파일을 직접 받아 추가할 수도 있고, cdn을 이용할 수도 있다. https://summernote.org/getting-started/#installation Summernote - Super Simple WYSIWYG editor Super Simple WYSIWYG Editor on Bootstrap Summernote is a JavaScri..
https://dev.twitch.tv/docs/api/reference/#get-streams Reference Twitch Developer tools and services to integrate Twitch into your development or create interactive experience on twitch.tv. dev.twitch.tv curl -X GET 'https://api.twitch.tv/helix/streams' \ -H 'Authorization: Bearer 2gbdx6oar67tqtcmt49t3wpcgycthx' \ -H 'Client-Id: wbmytr93xzw8zbg0p1izqyzzc5mbiz' 요청 예시를 보면 헤더에 액세스토큰과 클라이언트 id를 담아 GE..
발급받은 액세스 토큰은 DB에 저장해서 정보를 요청할 때 가져오도록 했고, 이 과정에서 토큰의 유효성 검사를 한 뒤 만료된 토큰이면 재발급받아 DB에 업데이트하고 새로 받은 토큰으로 정보를 가져오도록 만들었다. 스트리머 정보 가져오기 public Streamer getStreamerInfo(String login) { // 토큰이 유효하지 않다면 재발급 String token = getAccessToken(); if (!isAccessTokenValid(token)) { token = reGetAccessToken(); } // 정보 요청 HttpHeaders headers = new HttpHeaders(); headers.setBearerAuth(token); headers.set("Client-Id..
트위치 API를 통해 스트리머의 정보를 받아올 것이다. 준비 https://dev.twitch.tv/console Twitch Twitch is the world's leading video platform and community for gamers. dev.twitch.tv Twitch Develpers에 가서 Client ID와 Client Secret을 발급 받아야 한다. 트위치 계정으로 로그인을 한 뒤 내 응용 프로그램을 등록한다. 우선 로컬에서 테스트를 하니 리디렉션 URL은 localhost로 설정한다. 관리를 클릭하면 클라이언트 ID를 확인할 수 있고 클라이언트 시크릿을 발급 받을 수 있다. 클라이언트 시크릿까지 발급을 받는다. 브라우저 및 curl을 통해 토큰 발급 및 API 이용 프로그..