messagebird-nodejs icon indicating copy to clipboard operation
messagebird-nodejs copied to clipboard

Filter messages by recipient don't seems to works

Open Kalliser opened this issue 4 years ago • 0 comments

I'm using the API to retrieve message for a specific recipient phone number :

messagebird.messages.list({limit: 200, direction: 'mo', type: 'sms', recipient: phoneNumber}, (err, response) => {
                if (err) {
                    reject(err);
                }
                else
                {
                    [...]
                }

            });

But results always contains messages with unwanted recipients, if tryed different recipent formatting : international, local, even dummy string, but no effect at all on results. I could bypass it by filtering result by myself but it not a solution because of the filtering count limit, who could prevent message to be stuck if I have more than 200 messages from unwanted recipients.

Direct curl request works as intended so the problem is in the nodejs lib.

Could you resolve that ?

Kalliser avatar Mar 15 '21 11:03 Kalliser