How to Migrate Your SMS/MMS Applications from Bandwidth to Plivo

Jul 26, 2022
How to Migrate Your SMS/MMS Applications from Bandwidth to Plivo

Migrating from Bandwidth to Plivo is a seamless and painless process. The two companies’ API structures, implementation mechanisms, SMS message processing, and MMS message processing are similar. We wrote this technical comparison between the Bandwidth and Plivo APIs so that you can scope the changes for a seamless migration.

Understanding the differences between Bandwidth and Plivo development

Most of the APIs and features that are available on Bandwidth are also available on Plivo, and the steps involved are almost identical. This table gives a side-by-side comparison of the two companies’ features and APIs. An added advantage with Plivo is that not only can you code using the old familiar API method, you can also implement your use cases using PHLO (Plivo High Level Objects), a visual workflow builder that lets you create workflows by dragging and dropping components onto a canvas — no coding required.

Features and APIs Bandwidth Plivo Similarities Implementation Interface
SMS API: Send SMS messages Request and response variables’ structure API
PHLO
MMS API: Send MMS messages Request and response variables’ structure API
PHLO
10DLC: 10-digit long code (10DLC) phone numbers Registration process and usage Console
Managed number pool for US/CA Messaging Powerpack Feature parity API
Console
Phone number management Feature parity API
Console
HTTP callbacks Feature parity API
XML
PHLO

Plivo account creation

Start by signing up for a free trial account that you can use to experiment with and learn about our services. The free trial account comes with free credits, and you can add more as you go along. You can also add a phone number to your account to start testing the full range of our voice and SMS features. A page in our support portal walks you through the signup process.

You can also port your numbers from Bandwidth to Plivo, as we explain in this guide.

Migrating your SMS application

You can migrate your existing application from Bandwidth to Plivo by refactoring the code, or you can try our intuitive visual workflow builder PHLO. To continue working with the APIs, use one of the quickstart guides to set up a development environment for your preferred language. Plivo offers server SDKs in seven languages: PHP, Node.js, .NET, Java, Python, Ruby, and Go. For another alternative that lets you evaluate Plivo’s SMS APIs and their request and response structure, use our Postman collections.

How to send an SMS message

Let’s take a look at the process of refactoring the code to migrate your app from Bandwidth to Plivo to set up a simple cURL application to send an SMS message by changing just a few lines of code.

Bandwidth Plivo
    from bandwidth.bandwidth_client import BandwidthClient

    bandwidth_client = BandwidthClient(
        messaging_basic_auth_user_name="<username>",
        messaging_basic_auth_password="<password>")

    messaging_client = 
    bandwidth_client.messaging_client.client
    from 
    bandwidth.messaging.models.message_request import MessageRequest

    messagingBody = MessageRequest()
    messagingBody.to = 
    ["<destination_number>"]
    messagingBody.mfrom =
     "<sender_id>"
    messagingBody.text =
     "Hello, from Python!"
    messagingBody.application_id = "<app_id>"

    messaging_client.create_message("<account_id>", body=messagingBody)
   
    import plivo

    client = plivo.RestClient
    ('<auth_id>','<auth_token>')
    response = client.messages.create(
        src='<sender_id>',
        dst='<destination_number>',
        text='Hello, from Python!',)
    print(response)

Alternatively, you can implement the same functionality using one of our PHLO templates. For example, if you want to send an SMS message, your PHLO would look like this.

Migrating your MMS application

How to send an MMS message

Let’s take a look at the process of refactoring the code to migrate another application from Bandwidth to Plivo — a simple cURL application to send an MMS message — by changing just a few lines of code.

Bandwidth Plivo
    from bandwidth.bandwidth_client import
BandwidthClient

    bandwidth_client = BandwidthClient(
        messaging_basic_auth_user_name=
        "<username>",
        messaging_basic_auth_password=
        "<password>")

    messaging_client =
    bandwidth_client.messaging_client.client
    from
    bandwidth.messaging.models.message_request
    import MessageRequest

    messagingBody = MessageRequest()
    messagingBody.to = ["<to>"]
    messagingBody.mfrom = "<from>"
    messagingBody.text = "Hello, from
    Python!"
    messagingBody.application_id
    = "<app_id>"

    messaging_client.create_message("<account_id>", body=messagingBody)
            "from": "+12025553333",
            "text": "Hello, from Python!",
            "media": [
            "https://media.giphy.com/media/26gscSULUcfKU7dHq/source.gif"
            ],
            "tag": "custom string",
            "priority": "default"
        }'
   
    import plivo
    client = plivo.RestClient('<auth_id>','<auth_token>')

    response = client.messages.create(
        src='<sender_id>',
        dst='<destination_number>',
        Text ='Hello, from Python!',
    media_urls=['https://media.giphy.com/media/26gscSULUcfKU7dHq/source.gif'],
        type_='mms')
    print(response)

Alternatively, you can implement the same functionality using one of our PHLO templates. For example, if you want to send an MMS message, your PHLO would look like this.

More use cases

You can migrate applications for other use cases too:

Porting your existing numbers from Bandwidth to Plivo

If you want to continue using your phone numbers from Bandwidth, you can port the numbers to Plivo painlessly without having any downtime on your services for your customers. Our number porting guide shows you how to initiate the process.

Simple and reliable

Those are the basics for migrating from Bandwidth to Plivo. Our simple APIs work in tandem with our comprehensive global network, using Plivo’s premium direct routes that guarantee the highest possible delivery rates and the shortest possible delivery times for your SMS messages, making Plivo the best Bandwidth alternative. See for yourself — sign up for a free trial account.

Get Volume Pricing

Thousands of businesses in more than 220 countries trust Plivo’s cloud communications platform

The best communications platform forthe world’s leading entertainment service

Frequently asked questions

No items found.
footer bg

Subscribe to Our Newsletter

Get monthly product and feature updates, the latest industry news, and more!

Thank you icon
Thank you!
Thank you for subscribing
Oops! Something went wrong while submitting the form.

POSTS YOU MIGHT LIKE