Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Adds a subscription for the authenticated user's channel.
See: YouTube Data API Reference for youtube.subscriptions.insert
.
Synopsis
- type SubscriptionsInsertResource = "youtube" :> ("v3" :> ("subscriptions" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription)))))
- subscriptionsInsert :: Text -> Subscription -> SubscriptionsInsert
- data SubscriptionsInsert
- siPart :: Lens' SubscriptionsInsert Text
- siPayload :: Lens' SubscriptionsInsert Subscription
REST Resource
type SubscriptionsInsertResource = "youtube" :> ("v3" :> ("subscriptions" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription))))) Source #
A resource alias for youtube.subscriptions.insert
method which the
SubscriptionsInsert
request conforms to.
Creating a Request
Creates a value of SubscriptionsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsInsert Source #
Adds a subscription for the authenticated user's channel.
See: subscriptionsInsert
smart constructor.
Instances
Request Lenses
siPart :: Lens' SubscriptionsInsert Text Source #
The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
siPayload :: Lens' SubscriptionsInsert Subscription Source #
Multipart request metadata.