Re: [Demexp-dev] Retrieving questions

2007-11-06 Par sujet David MENTRE
Hello Diogene,

2007/11/6, Diogene Laerce [EMAIL PROTECTED]:
 // Questions download : Send a message to the server.
 $message = new xmlrpcmsg('question_info', array(new
 xmlrpcval($cookie_dm, int), new xmlrpcval(100, int), new
 xmlrpcval(200, int)));

As I said previously[1], the number of question requested is limited
to 100. Here you are requesting 200 questions, from number 100 to
number 299.


 valuestringrt_request_too_much_ids/string/value

That's why the server rejects your request. The error message means:
you request to many items at once.

Try instead:
 $message = new xmlrpcmsg('question_info', array(new
xmlrpcval($cookie_dm, int),

   new xmlrpcval(100, int),

   new xmlrpcval(100, int)));


Yours,
d.

[1] http://article.gmane.org/gmane.politics.organizations.demexp.devel/1452


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev


Re: [Demexp-dev] Retrieving questions

2007-11-06 Par sujet Lyu Abe

Hi Diogene!


Until now I just worked on the 100 first questions so : no problem..
Or near to.. :)


Great!


I tried even a [100, 101] intervalle but I get the same answer ??

@@@ Im not sure but Lyu, didnt you have the same issue, no ?


David just replied, but question_info is:
question_info(cookie, first question to retrieve, number of question to 
retrieve)


Regards, Lyu


___
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev