All URIs are relative to https://q.trap.jp/api/v3
Method | HTTP request | Description |
---|---|---|
getWebRTCState | GET /webrtc/state | WebRTC状態を取得 |
postWebRTCAuthenticate | POST /webrtc/authenticate | Skyway用認証API |
open class func getWebRTCState(completion: @escaping (_ data: [WebRTCUserState]?, _ error: Error?) -> Void)
WebRTC状態を取得
現在のWebRTC状態を取得します。
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import Traq
// WebRTC状態を取得
WebrtcAPI.getWebRTCState() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func postWebRTCAuthenticate(postWebRTCAuthenticateRequest: PostWebRTCAuthenticateRequest? = nil, completion: @escaping (_ data: WebRTCAuthenticateResult?, _ error: Error?) -> Void)
Skyway用認証API
Skyway WebRTC用の認証API
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import Traq
let postWebRTCAuthenticateRequest = PostWebRTCAuthenticateRequest(peerId: "peerId_example") // PostWebRTCAuthenticateRequest | (optional)
// Skyway用認証API
WebrtcAPI.postWebRTCAuthenticate(postWebRTCAuthenticateRequest: postWebRTCAuthenticateRequest) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
postWebRTCAuthenticateRequest | PostWebRTCAuthenticateRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]