This repository was archived by the owner on Jan 24, 2025. It is now read-only.
  
  
  - 
                Notifications
    
You must be signed in to change notification settings  - Fork 5
 
API Basics and Auth
        Jang Ryeol edited this page Mar 17, 2017 
        ·
        38 revisions
      
    헤더에 다음 정보를 추가하여야 합니다.
name | description
---- | ---- | ----
x-access-apikey | app마다 주어지는 고유한 api key입니다. 서버 관리자에게 문의하세요. 모든 api에 필수입니다.
x-access-token | 로그인 시 주어지는 토큰입니다. /course_books, /search_query, /tags, /app_version을 제외한 api에 필수입니다.
에러 발생 시 errcode를 반환합니다.
{
  "errcode": 8193,
  "message": "Failed to authenticate token."
}이용약관
HTML
개인정보취급방침
HTML
개발자 정보
HTML
임시 계정을 발급합니다.
{
  "token" : "..."
}페이스북이 아닌 로컬 계정으로 회원가입합니다.
ID 룰은 /^[a-z0-9]{4,32}$/i, 패스워드 룰은 /^(?=.*\d)(?=.*[a-z])\S{6,20}$/i입니다.
| name | description | example | 
|---|---|---|
| id | 유저 아이디 | snutt | 
| password | 비밀번호 | abc1234 | 
| 이메일 (optional) | '[email protected]' | 
200 코드와 함께
{
  "message" : "ok"
}다시 로그인하여 토큰을 받아야합니다.
페이스북이 아닌 로컬 계정으로 로그인합니다.
application/x-www-form-urlencoded 콘텐트 타입을 이용합니다.
| name | description | example | 
|---|---|---|
| id | 유저 아이디 | snutt | 
| password | 비밀번호 | abc1234 | 
{
  "token" : "..."
}페이스북 계정으로 로그인합니다. 계정이 존재하지 않는다면 새 계정을 생성합니다.
| name | description | example | 
|---|---|---|
| fb_id | 페이스북 id | |
| fb_token | Access token | 
{
  "token" : "..."
}- Home
 - Conventions & License
 - 서버 시작 및 수강편람 업데이트
 - API List (for express branch)
 - Error Codes
 - Feedback
 - Basics and Authentication
 - Bookmark
 - Coursebook
 - Search Query
 - Colors
 - Tags
 - Timetable
 - Notification
 - User
 - Shared Timetables
 - Client (for ver 2.0)
 - StoryBoard