Explorar o código

adjust document format

Ray Lee %!s(int64=6) %!d(string=hai) anos
pai
achega
6b76b52157
Modificáronse 1 ficheiros con 15 adicións e 23 borrados
  1. 15 23
      Omniauth_API_Document.md

+ 15 - 23
Omniauth_API_Document.md

@@ -1,15 +1,12 @@
-#Member Center API Document
-##Hosts
+# Member Center API Document
+## Hosts
  - preparing: https://preparing.kdanmobile.com:3002/
  - staging: https://staging.kdanmobile.com:3002/
  - production: https://cloud.kdanmobile.com/
 
-##APIs
-###Request Url
-> **POST** api/v3/verification/through\_omniauth
-
-###Request Parameters
-####Required
+## APIs
+### **POST** api/v3/verification/through\_omniauth
+#### Required Parameters
  - client_id, string
  - client_secret, string
  - provider, one of following string 
@@ -20,17 +17,17 @@
    - qq\_connect
    - wechat
    - microsoft_graph
+
  - omniauth_token, string
  - omniauth_secret **(only for twitter)**, string
  - bundle_id **(only for twitter)**, string
  - open_id **(only for qq\_connect, wechat)**, string
 
-####Optional
+#### Optional Parameters
  - email, string
  - password, string
 
-###Response
-####Successful
+#### Successful Response
 
     {
       "code":200,
@@ -65,7 +62,7 @@
       }
     }
 
-####Fail
+#### Fail Response
 
 當第三方社群未提供email
 
@@ -101,15 +98,13 @@
       "message":"Not authorized client"
     }
     
-###Request Url
-> **POST** api/v3/verification/email\_existed
-###Request Parameters
-####Required
+### **POST** api/v3/verification/email\_existed
+#### Required Parameters
  - client_id, string
  - client_secret, string
  - email, string
-###Response
-####Successful
+
+#### Successful Response
     {
       "code":200,
       "message":"ok",
@@ -122,10 +117,7 @@ or
       "message":"ok",
       "data": false
     }
-####Fail
+#### Fail Response
 當伺服器無法回應
 
-    null
-<!--stackedit_data:
-eyJoaXN0b3J5IjpbMTQ4NzA2NTA3OV19
--->
+    null