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 |
Add a page.
See: Blogger API Reference for blogger.pages.insert
.
Synopsis
- 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
:: 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:
data PagesInsert Source #
Add a page.
See: pagesInsert
smart constructor.