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 |
Add a new media item to an album. The current upload size limitations are 36MB for a photo and 1GB for a video. Uploads do not count against quota if photos are less than 2048 pixels on their longest side or videos are less than 15 minutes in length.
See: Google+ Domains API Reference for plusDomains.media.insert
.
- type MediaInsertResource = ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Media :> Post `[JSON]` Media)))))))) :<|> ("upload" :> ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` Media RequestBody :> Post `[JSON]` Media))))))))))
- mediaInsert :: MediaInsertCollection -> Media -> Text -> MediaInsert
- data MediaInsert
- miCollection :: Lens' MediaInsert MediaInsertCollection
- miPayload :: Lens' MediaInsert Media
- miUserId :: Lens' MediaInsert Text
REST Resource
type MediaInsertResource = ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Media :> Post `[JSON]` Media)))))))) :<|> ("upload" :> ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` Media RequestBody :> Post `[JSON]` Media)))))))))) Source
A resource alias for plusDomains.media.insert
method which the
MediaInsert
request conforms to.
Creating a Request
Creates a value of MediaInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MediaInsert Source
Add a new media item to an album. The current upload size limitations are 36MB for a photo and 1GB for a video. Uploads do not count against quota if photos are less than 2048 pixels on their longest side or videos are less than 15 minutes in length.
See: mediaInsert
smart constructor.
Request Lenses
miPayload :: Lens' MediaInsert Media Source
Multipart request metadata.
miUserId :: Lens' MediaInsert Text Source
The ID of the user to create the activity on behalf of.