I answered you over on the reviewboard-dev mailing list, but the trick is
to use the ?expand parameter to navigate the tree of resources.
The webapi is designed as a tree--each review request contains links to a
bunch of reviews, and each review contains links to comments. Using ?expand
lets you include those inline in the response:
This will return a large blob of JSON, which you can then traverse to pull
out all of the comment text.
On Fri, Mar 20, 2015 at 1:19 PM vijay bhaskar reddy Yalamuri <
> Hi Every one,
> I would to like bring my few of doubts to this group. Please help me on
> 1) I need to get all the review comments in one shot and print it on the
> console or a file. Please provide me sample snippet for this.
> I tried to use this below API, But I couldn't get any details.
> I tried get function to get the details, But I didn't get any details.
> I think there is some other way to get those review comments.
> If one one is having sample snippet , plz provide me the same.
> 2) From the link "
> this is also used to get the comments.
> Even I thought of using this, but this API requires to arguments, But I
> have only request request id what is the other argument review-id ?
> Please provide me code snippet for this as well on how to use this and get
> the diff comments.
> sample snippet which I am using :
> url1 = '/api/review-requests/19/reviews/19/diff-comments/'
> <<<<< Here I have used review id and review request id same, But I don't
> know why 2 args.
> datareviews1 = rb_server.api_get( url1 )
> print datareviews1
> I got some data, but doesn't have review comments.
> Thanks for helping me in advance!!!
> Supercharge your Review Board with Power Pack:
> Want us to host Review Board for you? Check out RBCommons:
> Happy user? Let us know! https://www.reviewboard.org/users/
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Supercharge your Review Board with Power Pack:
Want us to host Review Board for you? Check out RBCommons:
Happy user? Let us know! https://www.reviewboard.org/users/
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.