The TeamworkFX search is pretty good, but its algorithm is also comprehensive and sometimes unwieldy to sort. I wanted a way to search my own comments for information I may have forgotten that doesn’t rely on going back through my email inbox.
Every FXer has an API key to TWFX. If we plug this in to a cURL request, we can hit various points of the API and pull our own comments.
It’s not quite as straightforward as it sounds, though. In order to pull a single comment, the ID of the parent todo is also needed, meaning if we want to pull every comment we’ve made, we also need to know every todoId associated with those comments. This is obviously a lot of data to be pulling, so I decided to break it down.
However, even this breakdown requires a little extra work. Because the client list does not contian any information about todos, and the todo list doesn’t contain the pretty name of the client; in order to pull all of the clients I’ve been responsible for, I would need to pull both:
And match them together.
After making that happen, I would then also need to do one more cURL request to get all of my comments associated with the client (if selected), or just my last 100 comments (if no clients selected).
After putting that all together, I had Cursor style it and add a loading animation (since it takes a few seconds to load all of those cURL requests).
Used Cursor to assist in creating a front-end for searching my own previous TWFX comments.
