MessageBird in XOJO

Has anyone had experience with the MessageBird company?

I want to make a connection with them to send an SMS message. It is required to create an object in XOJO.

This is done in Python:

import messagebird

ACCESS_KEY = "xxxxxxxxx"
sms_message = "My Message"

try:
  # Fetch the Balance object.
  client = messagebird.Client(ACCESS_KEY)
......

Theres no ‘include’ library of this type.
It looks as though you can use REST, by making use of CURL

1 Like

Thank you for your reply, Jeff.

I am investigating what possibilities I have. Next week, if I find one, I’ll share it here.

I was using twilio so far with curl, but has anybody make messagebird work with XOJO?

Yes!
I did it in Python and Xojo.

It works well. You can do it If the speed is not an issue for you. The process is slow.

I had to send messages to more than 200 people. Sending message by message was not functional. Instead, I did it in Bulk to send everything using the MessageBird import tool.

You don’t need CURL or Python to send a request to a REST API. Doing so adds a bunch of unnecessary overhead.

It looks like you can send up to 100 messages per request with the batch endpoint: MessageBird | API SMS Batch Api

200 messages would be two requests, which really shouldn’t be slow at all.

If you would like someone to implement Xojo code to interact with this REST API effectively and efficiently, communicating with REST APIs in Xojo is one of my specialties.

1 Like