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