You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been beating my head against this batch_delete_messages method for a bit now and finally managed to get it working by updating from:
batch_delete_messages_request_object = nil
to:
batch_delete_messages_request_object: nil
here is what some of my code looks:
messages_object = service.list_user_messages(user_id, q: "older_than:1d")
message_ids = []
if messages_object.result_size_estimate > 0
messages_object.messages.each do |message_id|
message_ids << message_id.id
end
end
message_ids
Hi @Press10 , thank you for the detailed bug report. Unfortunately, this issue tracker has limited visibility and scope - basically, it's just for reporting issues with the samples contained here and is only watched by the folks who work on these samples.
We are happy to help you move this bug to venues where it'll get the attention of the appropriate product teams.
I'm going to close this issue because the folks who own this repo have no actionable way to resolve it directly, but please let us know if there's anything we can do to help!
google-api-ruby-client/generated/google/apis/gmail_v1/service.rb
Line 686 in 48cd79b
I've been beating my head against this batch_delete_messages method for a bit now and finally managed to get it working by updating from:
batch_delete_messages_request_object = nil
to:
batch_delete_messages_request_object: nil
here is what some of my code looks:
messages_object = service.list_user_messages(user_id, q: "older_than:1d")
message_ids = []
if messages_object.result_size_estimate > 0
messages_object.messages.each do |message_id|
message_ids << message_id.id
end
end
message_ids
then using that array of message_ids like so:
service.batch_delete_messages(user_id,batch_delete_messages_request_object: {"ids": message_ids})
would this be the correct fix to get this working? or am i passing in the message ids in wrong?
The text was updated successfully, but these errors were encountered: