Problem
Using the Twilio REST API, I want to request only those messages that I have not yet downloaded. It seems the cleanest way to do this is to download only messages after the specified SID.
Information not in documents
Twilio filter documents do not have this option. They describe only to, fromand date_sent.
However, it seems that Twilio has this feature. You can see in your paging information what it nextpageuricontains AfterSid.
When the website starts, the URL contains /user/account/log/messages?after=SMXXXXXX
What I tried so far
Using the twilio-ruby client, I tried the following without success:
list = @client.account.sms.messages.list({after: 'SMXXXXXX'})
list = @client.account.sms.messages.list({AfterSid: 'SMXXXXXX'})
list = @client.account.sms.messages.list({after_sid: 'SMXXXXXX'})
source
share