View Single Post
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#177
Originally Posted by ejasmudar View Post
I tried making a new class for th indian web-to-sms site 160by2.com. I tried to add it to the source and run it from xterm with the command
Code:
run-standalne.sh python2.5 www2sms.py
. But apparently, things are not as simple as that.


2. i will post the new class here, can you please check if it works?

[CODE]
class provider_160by2(provider):
def getName(self):
return '160by2'
def hasAdvancedFeatures(self):
return False
[...]
A quick lookup on the requested providers website revealed an API for sending SMS:
http://www.smscountry.com/Developers.asp?code=httpjava&sft=1
http://www.smscountry.com/Downloads%5CSMSCountry_HTTP_API.pdf

You should use this API, if applicable, and not scrape the website. If this API does not work, we'll have a look on your previous code.

As template you can use "provider_Telbo"

don't forget to copy
www2sms_gui_widget_advanced_telbo.py and www2sms_gui_widget_advanced_telbo.py
to
www2sms_gui_widget_advanced_${YOUR_PROVIDER_NAME}. py and www2sms_gui_widget_advanced_${YOUR_PROVIDER_NAME}. ui

Originally Posted by ejasmudar View Post
So, 1. How do i compile a package from source?
You do not have to compile anything!
Just run www2sms.py from the commandline
"python www2sms.py"

Cheers
Bjoern
 

The Following User Says Thank You to blubbi For This Useful Post: