-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME
More file actions
28 lines (22 loc) · 1.39 KB
/
README
File metadata and controls
28 lines (22 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
social-api-pilot 프로젝트는 스프링 프레임워크 기반에 SNS 연동을 목적으로 하는 파일럿 프로젝트입니다.
현재는 OAuth 구현체 중, Scribe 라이브러리를 사용해 트위터의 타임라인/트위팅 기능을 구현했으며, 앞으로
다른 SNS를 추가하고 spring-social 모듈을 사용할 생각입니다.
트위터 타임라인 보기:
아래 URL로 접속해 OAuth 인증을 받으면 /twitter/index로 리다이렉트 됩니다.
http://localhost:8080/social-api-pilot/twitter/oauth
트위팅:
아래 URL로 접속해 폼에 원하는 텍스트를 적고 버튼을 누르면 인증 받은 계정으로 트윗을 날립니다.
http://localhost:8080/social-api-pilot/twitter/form
access token 테스트:
OAuth 인증 시작
http://localhost:8080/social-api-pilot/test/twitter/oauth
Access Token 출력, 앞이 토큰, 뒤가 시크릿 키
http://localhost:8080/social-api-pilot/test/twitter/index
-- 쿠키 및 세션 정리한 뒤..
타임라인 보기
http://localhost:8080/social-api-pilot/test/twitter/timeline/토큰/키
트위팅하기
http://localhost:8080/social-api-pilot/test/twitter/tweeting/토큰/키
access token 사용 가능한지 확인
http://localhost:8080/social-api-pilot/test/twitter/verify/토큰/키
위의 URL에 '토큰', '키' 부분은 index 페이지에서 출력된 것을 복사해서 URL을 만들라는 의미입니다.