From a7d696b77549628c74513c4e2ee5f92efe79990e Mon Sep 17 00:00:00 2001 From: FakeGeek Date: Thu, 29 Aug 2019 16:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=BA=86=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E9=87=8C=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E7=9A=84=20timest?= =?UTF-8?q?amp=20=EF=BC=8C=E8=BF=99=E9=83=A8=E5=88=86=E5=BA=95=E5=B1=82?= =?UTF-8?q?=E5=B0=81=E8=A3=85=E5=A5=BD=E5=B0=B1=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3175c87..341d894 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ end ```swift init(websocketURL: URL) var affectiveCloudDelegate: AffectiveCloudResponseDelegate? -func createAndAuthenticateSession(appKey: String, appSecret: String, userID: String, timestamp: String) +func createAndAuthenticateSession(appKey: String, appSecret: String, userID: String) func restoreSession() func closeSession() ``` @@ -144,8 +144,7 @@ func websocketState(client: AffectiveCloudClient, state: CSState) { if state == .connected { self.client.createAndAuthenticateSession(appKey: YourAppKey, appSecret: YourAppSecret, - userID: YouruserID, - timestamp: currentTimestamp) + userID: YourUserID) } } @@ -174,8 +173,7 @@ func closeAction(_ sernder: UIButton) { |:--:|:--:|:--:| | appKey | String | 由我们后台生成的:App Key | | appSecret | String | 由我们后台生成的:App Secret| -| userID | String | 你 app 当前用户的 id,详见[userID](https://docs.affectivecloud.com/🎙接口协议/3.%20会话协议.html#userID) | -| timestamp | String | 当前的 unix 时间戳 | +| userID | String | 你 app 当前用户的 id,如手机号、id 号,昵称等,需要保证唯一性。详见[userID](https://docs.affectivecloud.com/🎙接口协议/3.%20会话协议.html#userID) | ## 基础生物数据分析服务