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 |
Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.) Note: Even though an activity resource can contain information about actions like a user rating a video or marking a video as a favorite, you need to use other API methods to generate those activity resources. For example, you would use the API's videos.rate() method to rate a video and the playlistItems.insert() method to mark a video as a favorite.
See: YouTube Data API Reference for youtube.activities.insert
.
Synopsis
- type ActivitiesInsertResource = "youtube" :> ("v3" :> ("activities" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Activity :> Post '[JSON] Activity)))))
- activitiesInsert :: Text -> Activity -> ActivitiesInsert
- data ActivitiesInsert
- aiPart :: Lens' ActivitiesInsert Text
- aiPayload :: Lens' ActivitiesInsert Activity
REST Resource
type ActivitiesInsertResource = "youtube" :> ("v3" :> ("activities" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Activity :> Post '[JSON] Activity))))) Source #
A resource alias for youtube.activities.insert
method which the
ActivitiesInsert
request conforms to.
Creating a Request
Creates a value of ActivitiesInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ActivitiesInsert Source #
Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.) Note: Even though an activity resource can contain information about actions like a user rating a video or marking a video as a favorite, you need to use other API methods to generate those activity resources. For example, you would use the API's videos.rate() method to rate a video and the playlistItems.insert() method to mark a video as a favorite.
See: activitiesInsert
smart constructor.