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 |
Gets one comment by ID.
See: Blogger API Reference for blogger.comments.get
.
- type CommentsGetResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> ("comments" :> (Capture "commentId" Text :> (QueryParam "view" CommentsGetView :> (QueryParam "alt" AltJSON :> Get `[JSON]` Comment)))))))))
- commentsGet :: Text -> Text -> Text -> CommentsGet
- data CommentsGet
- cgBlogId :: Lens' CommentsGet Text
- cgView :: Lens' CommentsGet (Maybe CommentsGetView)
- cgPostId :: Lens' CommentsGet Text
- cgCommentId :: Lens' CommentsGet Text
REST Resource
type CommentsGetResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> ("comments" :> (Capture "commentId" Text :> (QueryParam "view" CommentsGetView :> (QueryParam "alt" AltJSON :> Get `[JSON]` Comment))))))))) Source
A resource alias for blogger.comments.get
method which the
CommentsGet
request conforms to.
Creating a Request
Creates a value of CommentsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CommentsGet Source
Gets one comment by ID.
See: commentsGet
smart constructor.
Request Lenses
cgBlogId :: Lens' CommentsGet Text Source
ID of the blog to containing the comment.
cgView :: Lens' CommentsGet (Maybe CommentsGetView) Source
Access level for the requested comment (default: READER). Note that some comments will require elevated permissions, for example comments where the parent posts which is in a draft state, or comments that are pending moderation.
cgPostId :: Lens' CommentsGet Text Source
ID of the post to fetch posts from.
cgCommentId :: Lens' CommentsGet Text Source
The ID of the comment to get.