Comment API - how to get all comments

Is there a way to download all comments via the comment API. By default I don't want just the last 7 days. I have played around with the updatedDate parameter, but it won't allow me to choose a range larger than 7 days. The API also doesn't seem to support a pageSize. Ideally I want to download my systems entire comment history and page through the comments via the API. Am I forced to do it in 7 day chunks and make an API call for every week? That means I have to hit your servers 52 times for every year of data that I want to download which seems very inefficient.

Thanks

2
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
3 comments

Hello,
My piece of code python3

def get_wrike_task_comments(task_id, start_date):
response = requests.request(
method='GET',
data=f'{{"updatedDate": ["start":{start_date}]}}',
url=f'{wrike_api}/tasks/{task_id}/comments',
headers=WRIKE_HEADERS
return response.text
1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Jeffrey, did the above coding work so that you could get all comments from your account?

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

It has been a few years, but if I recall I think it did work. I wrote it in Go, but I think that answer worked for me as I don't recall being blocked on this permanently.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: Comment API - how to get all comments
[this list is visible for admins and agents only]

Top

Upcoming Live Sessions

Didn’t find what you were looking for? Write new post