Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ET-LINK committed Aug 29, 2019
2 parents f4f29a3 + a7d696b commit b99601b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```
Expand Down Expand Up @@ -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)
}
}

Expand Down Expand Up @@ -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) |


## 基础生物数据分析服务
Expand Down

0 comments on commit b99601b

Please sign in to comment.