| 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 |
Network.Google.Resource.Blogger.Pages.Insert
Description
Add a page.
See: Blogger API Reference for blogger.pages.insert.
- type PagesInsertResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("pages" :> (QueryParam "isDraft" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Page :> Post `[JSON]` Page)))))))
- pagesInsert :: Text -> Page -> PagesInsert
- data PagesInsert
- piIsDraft :: Lens' PagesInsert (Maybe Bool)
- piBlogId :: Lens' PagesInsert Text
- piPayload :: Lens' PagesInsert Page
REST Resource
type PagesInsertResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("pages" :> (QueryParam "isDraft" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Page :> Post `[JSON]` Page))))))) Source
A resource alias for blogger.pages.insert method which the
PagesInsert request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Page | |
| -> PagesInsert |
Creates a value of PagesInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Request Lenses
piIsDraft :: Lens' PagesInsert (Maybe Bool) Source
Whether to create the page as a draft (default: false).
piBlogId :: Lens' PagesInsert Text Source
ID of the blog to add the page to.
piPayload :: Lens' PagesInsert Page Source
Multipart request metadata.