4doom4 / python-voipms

Python client for v1 of voip.ms REST API
MIT License
24 stars 12 forks source link

Text messages sent with apostrophe displays '%27' on target smartphone #1

Open spectroware opened 6 years ago

spectroware commented 6 years ago

Problem

Using latest pip install of voipms (v0.2.3). Wrote test program to send sms message. Receiving smartphone shows apostrophe replaced with %27. voipms code shows that it urlencodes message. I assume Voip.ms server does not urldecode message.

I have sent message to voip.ms support but also wanted to record problem here for possible assistance with Voip.ms in resolving this problem.

Here is my sample test code:


import sys
import ConfigParser
from voipms import VoipMs

config = ConfigParser.ConfigParser()
config.read("voip.conf")

username = config.get('main','username')
password = config.get('main','password')

client = VoipMs(username,password)
sentsms = client.dids.send.sms(4085551111, 4085552222, "Third\'s the charm")
4doom4 commented 6 years ago

Oh ... I didn’t know that anybody actually uses it. I will see if i can fix it. But it might take a while.

spectroware commented 6 years ago

Hey, it looks like a good comprehensive library and was a lot of work to put it together.  I think developers aren't aware such a library exists but I've gotten into a habit of hunting around to see if anyone created a library I can use.  In Python, it seems there are libraries for anything and everything.  I'm definitely a Python fan.

Anyway, whenever you get a chance to fix it.  It's not a show stopper but would be nice to fix.

Thanks.

Ray...

On 02/15/2018 07:31 PM, maxebert wrote:

Oh ... I didn’t know that anybody actually uses it. I will see if i can fix it. But it might take a while.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/4doom4/python-voipms/issues/1#issuecomment-366135579, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai0uuO4q4QR85kKfAqQ_M8CDDUiLBjd5ks5tVPavgaJpZM4SHS0o.