Copyright | (c) 2015 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
.
- 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.
Request Lenses
aiPart :: Lens' ActivitiesInsert 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.
aiPayload :: Lens' ActivitiesInsert Activity Source
Multipart request metadata.