I'm encountering the 500 internal server error because I'm bogging down the server with GET requests. Essentially what I'm trying to do is load the first 100 threads in a given inbox, loop through the threads and retrieve the body of each message in each thread (stored in an associative array with the thread id as the key and the message objects as the values). The only way I see to do that with the API is to use the thread id filter of messages: http:://
127.0.0.1:5555/n/<namespace_id>/messages?thread=<thread_id> and loop through 100 GET requests in a PHP for loop, which is too fast for the API server to handle.
If this make sense, does anyone know of a better way to do this?
Thanks.