CustomRewardRequest
public struct CustomRewardRequest : JSONConstructableRequest
Get, Create, or delete custom award request see https://dev.twitch.tv/docs/api/reference/#create-custom-rewards https://dev.twitch.tv/docs/api/reference/#update-custom-reward and https://dev.twitch.tv/docs/api/reference/#delete-custom-reward for details
-
Undocumented
Declaration
Swift
public let url: URL?
-
Undocumented
Declaration
Swift
public let method: HTTPMethod
-
Undocumented
Declaration
Swift
public let data: Data
-
init(httpMethod:
broadcasterID: id: title: cost: prompt: isEnabled: backgroundColor: isUserInputRequired: isMaxPerStreamEnabled: maxPerStream: isMaxPerUserPerStreamEnabled: maxPerUserPerStream: isGlobalCooldownEnabled: globalCooldownSeconds: shouldRedemptionsSkipRequestQueue: onlyManageableRewards: isPaused: ) Undocumented
Declaration
Swift
public init( httpMethod: HTTPMethod, broadcasterID: String, id: String? = nil, title: String? = nil, cost: String? = nil, prompt: String? = nil, isEnabled: String? = nil, backgroundColor: String? = nil, isUserInputRequired: String? = nil, isMaxPerStreamEnabled: String? = nil, maxPerStream: String? = nil, isMaxPerUserPerStreamEnabled: String? = nil, maxPerUserPerStream: String? = nil, isGlobalCooldownEnabled: String? = nil, globalCooldownSeconds: String? = nil, shouldRedemptionsSkipRequestQueue: String? = nil, onlyManageableRewards: String? = nil, isPaused: String? = nil ) throws