Skip to content

Latest commit

 

History

History
106 lines (71 loc) · 2.93 KB

WebrtcAPI.md

File metadata and controls

106 lines (71 loc) · 2.93 KB

WebrtcAPI

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

getWebRTCState

    open class func getWebRTCState(completion: @escaping (_ data: [WebRTCUserState]?, _ error: Error?) -> Void)

WebRTC状態を取得

現在のWebRTC状態を取得します。

Example

// 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)
    }
}

Parameters

This endpoint does not need any parameter.

Return type

[WebRTCUserState]

Authorization

OAuth2, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

postWebRTCAuthenticate

    open class func postWebRTCAuthenticate(postWebRTCAuthenticateRequest: PostWebRTCAuthenticateRequest? = nil, completion: @escaping (_ data: WebRTCAuthenticateResult?, _ error: Error?) -> Void)

Skyway用認証API

Skyway WebRTC用の認証API

Example

// 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)
    }
}

Parameters

Name Type Description Notes
postWebRTCAuthenticateRequest PostWebRTCAuthenticateRequest [optional]

Return type

WebRTCAuthenticateResult

Authorization

OAuth2, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]