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 |
Retrieves the comments for a post, possibly filtered.
See: Blogger API Reference for blogger.comments.list
.
Synopsis
- type CommentsListResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> ("comments" :> (QueryParams "status" CommentsListStatus :> (QueryParam "endDate" DateTime' :> (QueryParam "startDate" DateTime' :> (QueryParam "fetchBodies" Bool :> (QueryParam "view" CommentsListView :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] CommentList))))))))))))))
- commentsList :: Text -> Text -> CommentsList
- data CommentsList
- clStatus :: Lens' CommentsList [CommentsListStatus]
- clEndDate :: Lens' CommentsList (Maybe UTCTime)
- clBlogId :: Lens' CommentsList Text
- clStartDate :: Lens' CommentsList (Maybe UTCTime)
- clFetchBodies :: Lens' CommentsList (Maybe Bool)
- clView :: Lens' CommentsList (Maybe CommentsListView)
- clPostId :: Lens' CommentsList Text
- clPageToken :: Lens' CommentsList (Maybe Text)
- clMaxResults :: Lens' CommentsList (Maybe Word32)
REST Resource
type CommentsListResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> ("comments" :> (QueryParams "status" CommentsListStatus :> (QueryParam "endDate" DateTime' :> (QueryParam "startDate" DateTime' :> (QueryParam "fetchBodies" Bool :> (QueryParam "view" CommentsListView :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] CommentList)))))))))))))) Source #
A resource alias for blogger.comments.list
method which the
CommentsList
request conforms to.
Creating a Request
:: Text | |
-> Text | |
-> CommentsList |
Creates a value of CommentsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CommentsList Source #
Retrieves the comments for a post, possibly filtered.
See: commentsList
smart constructor.
Instances
Request Lenses
clEndDate :: Lens' CommentsList (Maybe UTCTime) Source #
Latest date of comment to fetch, a date-time with RFC 3339 formatting.
clStartDate :: Lens' CommentsList (Maybe UTCTime) Source #
Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
clFetchBodies :: Lens' CommentsList (Maybe Bool) Source #
Whether the body content of the comments is included.
clView :: Lens' CommentsList (Maybe CommentsListView) Source #
Access level with which to view the returned result. Note that some fields require elevated access.
clPageToken :: Lens' CommentsList (Maybe Text) Source #
Continuation token if request is paged.
clMaxResults :: Lens' CommentsList (Maybe Word32) Source #
Maximum number of comments to include in the result.