How To Send SMS Message From Python Via Skype

In case you didn’t know, Skype offers an extensive API for their application. This API can be used via Java library, COM module or a Python library. The Java library, COM Module and Python library all share similar features and I decided to try out the Python library. What I wanted to do is to write a simple Python script that uses the Skype API to send SMS message from Skype. After going through their API documention, I was ready to go and the outcome was this short script: 

I think that the code is pretty straightforward and doesn’t require additional explaining. Feel free to ask questions at the comments.
Arik

  • http://webdev.blogli.co.il Nir Tayeb

    Can I use it for sending free SMS like in ICQ?

  • http://www.arikfr.com/ Arik

    No. The charge for these messages is regular Skype rates.

  • http://doubt! Marcio Alexandre

    can we use it free?
    To run our aplicattion I think that we need to pay € 0,038 per sms, how we see here: http://www.skype.com/intl/en/prices/.
    I’m from brazil, this’s a doubt, can you tell me about it?

    tks!!

  • http://www.arikfr.com/ Arik

    No. You pay the same rates as you would pay by using Skype. It just provides you an API.

  • Richy

    presumably the text isnt free is it ?

  • http://www.arikfr.com/blog/ Arik Fraimovich

    Yep. Same rates as sending directly from Skype.

  • jamiekirkpatrick

    Thanks dude..saved me having to dig through shed loads of (not very clear) documentation.

  • http://www.arikfr.com/blog/ Arik Fraimovich

    Glad I could help :) They sure have a lot to improve with their
    documentation.

  • http://github.com/jkp jkp

    Thanks dude..saved me having to dig through shed loads of (not very clear) documentation.

  • http://www.arikfr.com/blog/ Arik Fraimovich

    Glad I could help :) They sure have a lot to improve with their
    documentation.

  • Gchinthaka

    im really new to ubuntu and python :(
    but im keep learning.
    i wanna know how to run this code

    python s.py

    then it says libgmail not found