Class ProxseeApi
Periscope(proxsee.pscp.tv)v2 API のクライアント。
認証は 2 段階です: authenticatePeriscope(X の GraphQL)で JWT を得て、
loginTwitterToken でそれを proxsee のセッション Cookie に交換します。
public sealed class ProxseeApi
- Inheritance
-
ProxseeApi
- Inherited Members
Constructors
ProxseeApi(Client)
public ProxseeApi(Client client)
Parameters
clientClient
Properties
DisplayName
public string? DisplayName { get; }
Property Value
PeriscopeUserId
public string? PeriscopeUserId { get; }
Property Value
TwitterId
public string? TwitterId { get; }
Property Value
TwitterScreenName
public string? TwitterScreenName { get; }
Property Value
UserType
public string? UserType { get; }
Property Value
Methods
AccessChatAsync(string)
チャットトークンを {endpoint, room_id, access_token} に交換します。
public Task<JsonObject> AccessChatAsync(string chatToken)
Parameters
chatTokenstring
Returns
AccessChatPublicAsync(string)
public Task<JsonObject> AccessChatPublicAsync(string chatToken)
Parameters
chatTokenstring
Returns
AssociateTweetWithBroadcastAsync(string, string, bool)
public Task<JsonObject> AssociateTweetWithBroadcastAsync(string broadcastId, string tweetId, bool tweetExternal = false)
Parameters
Returns
CancelScheduledSpaceAsync(string)
public Task<JsonObject> CancelScheduledSpaceAsync(string broadcastId)
Parameters
broadcastIdstring
Returns
CreateBroadcastAsync(JsonObject)
ブロードキャストを作成します(broadcast、access_token、room_id、stream_name、credential、webrtc_gw_url などを返します)。
public Task<JsonObject> CreateBroadcastAsync(JsonObject metadata)
Parameters
metadataJsonObject
Returns
EndBroadcastAsync(string)
public Task<JsonObject> EndBroadcastAsync(string broadcastId)
Parameters
broadcastIdstring
Returns
GetChatHistoryAsync(string, string, string?, int, JsonNode?, bool)
public Task<JsonObject> GetChatHistoryAsync(string endpoint, string accessToken, string? cursor = null, int limit = 1000, JsonNode? since = null, bool quickGet = true)
Parameters
Returns
GetScheduledSpacesAsync()
public Task<JsonObject> GetScheduledSpacesAsync()
Returns
GetTokenForServiceAsync(string)
public Task<JsonObject> GetTokenForServiceAsync(string service)
Parameters
servicestring
Returns
GetTurnServersAsync()
{uris, username, password}(WebRTC 用の TURN サーバー)を返します。
public Task<JsonObject> GetTurnServersAsync()
Returns
Headers()
proxsee は毎回ブラウザ風のヘッダーを要求します(無いと turnServers などが 401/400)。
public static Dictionary<string, string> Headers()
Returns
LoginAsync(bool)
AuthenticatePeriscope の JWT を proxsee のセッションに交換します。
public Task LoginAsync(bool createUser = false)
Parameters
createUserbool
Returns
PostAsync(string, JsonObject)
ログイン済みで proxsee の /api/v2/{endpoint} に POST します。
public Task<JsonObject> PostAsync(string endpoint, JsonObject payload)
Parameters
endpointstringpayloadJsonObject
Returns
PrePublishScheduledAudioBroadcastAsync(string)
public Task<JsonObject> PrePublishScheduledAudioBroadcastAsync(string broadcastId)
Parameters
broadcastIdstring
Returns
PublishBroadcastAsync(JsonObject?)
public Task<JsonObject> PublishBroadcastAsync(JsonObject? extra = null)
Parameters
extraJsonObject
Returns
ReconnectHostAsync(string)
public Task<JsonObject> ReconnectHostAsync(string broadcastId)
Parameters
broadcastIdstring
Returns
WebrtcBroadcastMetaAsync(JsonObject)
public Task<JsonObject> WebrtcBroadcastMetaAsync(JsonObject payload)
Parameters
payloadJsonObject
Returns
WebrtcPlaybackMetaAsync(JsonObject)
public Task<JsonObject> WebrtcPlaybackMetaAsync(JsonObject payload)
Parameters
payloadJsonObject