Re: Comment on ReviewBoardAPI in reviewboard

2010-08-18 Thread reviewboard

Comment by rajesh.arr:

hi
how are you


For more information:
http://code.google.com/p/reviewboard/wiki/ReviewBoardAPI

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Comment on ReviewBoardAPI in reviewboard

2010-03-26 Thread reviewboard

Comment by chipx86:

Temporary outage. It's back up.


For more information:
http://code.google.com/p/reviewboard/wiki/ReviewBoardAPI

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Comment on ReviewBoardAPI in reviewboard

2010-02-22 Thread reviewboard

Comment by evgeny.zislis:

The responses are json, but the requests (in rb 1.5) are strangle multipart  
form data! Took me ages to figure out how to request stuff from the server.


Example:
{{{
curl --cookie cookies.txt --cookie-jar cookies.txt -X POST  
-F username=xxx -F password=yyy  
http://reviewserver.com/api/json/accounts/login/


curl --cookie cookies.txt --cookie-jar cookies.txt -X GET  
http://reviewserver.com/api/json/repositories/

}}}


For more information:
http://code.google.com/p/reviewboard/wiki/ReviewBoardAPI

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Comment on ReviewBoardAPI in reviewboard

2010-02-22 Thread reviewboard

Comment by evgeny.zislis:

The responses are json, but the requests (in rb 1.5) are strangly sent  
using multipart form data! Took me ages to figure out how to request stuff  
from the server.


Example:
{{{
curl --cookie cookies.txt --cookie-jar cookies.txt -X POST  
-F username=xxx -F password=yyy  
http://reviewserver.com/api/json/accounts/login/


curl --cookie cookies.txt --cookie-jar cookies.txt -X GET  
http://reviewserver.com/api/json/repositories/

}}}


For more information:
http://code.google.com/p/reviewboard/wiki/ReviewBoardAPI

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Comment on ReviewBoardAPI in reviewboard

2010-02-22 Thread reviewboard

Comment by evgeny.zislis:

The responses are json, but the requests (in rb 1.5) are strangely sent  
using multipart form data! Took me ages to figure out how to request stuff  
from the server.


Example:
{{{
curl --cookie cookies.txt --cookie-jar cookies.txt -X POST  
-F username=xxx -F password=yyy  
http://reviewserver.com/api/json/accounts/login/


curl --cookie cookies.txt --cookie-jar cookies.txt -X GET  
http://reviewserver.com/api/json/repositories/

}}}


For more information:
http://code.google.com/p/reviewboard/wiki/ReviewBoardAPI

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Comment on ReviewBoardAPI in reviewboard

2009-10-29 Thread codesite-noreply

Comment by p...@swooby.com:

Python example:

import simplejson
import sys
import urllib

class ReviewBoard:
   def __init__(self, server, username, password):
 self.server = server
 self.username = username
 self.password = password

   def Run(self, command, params=None, throw=True):
 if params:
   params = urllib.urlencode(params)
 url = 'http://%s/api/json/%s/' % (self.server, command)
 f = urllib.urlopen(url, params)
 # TODO: Request Error handling...
 s = f.read()
 response = simplejson.loads(s)
 self.OK(response, throw)
 return response

   def OK(self, response, throw=False):
 ok = response['stat'] == 'ok'
 if not ok and throw:
   raise Exception('ReviewBoard response stat not ok')
 return ok

   def Login(self, username=None, password=None):
 if username is None:
   username = self.username
 if password is None:
   password = self.password
 rb.Run('accounts/login', {'username': username, 'password': password})


if __name__ == '__main__':
   reviewers = ['larry', 'moe', 'curly']
   rb = ReviewBoard('10.100.120.86', 'username', 'password')
   rb.Login()
   response = rb.Run('reviewrequests/11/reviews')
   reviews = response['reviews']
   for review in reviews:
 reviewer = review['user']['username']
 ship_it = review['ship_it']
 if reviewer in reviewers and ship_it:
   print '%s SAYS SHIP IT!' % reviewer.upper()


For more information:
http://code.google.com/p/reviewboard/wiki/ReviewBoardAPI

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~--~~~~--~~--~--~---



Comment on ReviewBoardAPI in reviewboard

2009-03-21 Thread codesite-noreply

Comment by helder:

Could anyone document better the diff/new call please?


For more information:
http://code.google.com/p/reviewboard/wiki/ReviewBoardAPI

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~--~~~~--~~--~--~---