Package all about providers. This packages handles the code for sending a message through a provider.
One Offer for sending. This class is used to send a message via a provider.
Constructor for Offer class.
Parameters: |
|
---|
send a message to a recipient. This method uses iro.offer.provider.Provider.send()
Parameters: |
|
---|
Bases: iro.config.Config
Base class for Providerbackends.
Constructor for Provider class.
Parameters: |
|
---|
>>> p = Provider("myProvider",{"sms":["route1","route2"]})
Returns the actually send function for a given typ and route.
Normally it returns the send function with typ and route bound.
Raises : | NoRoute, NoTyp |
---|
Main send function, that is called, for every single message.
Note
This function is not used directly. Normally getSendFunc() return this function with typ and route bound.
creates a provider object and init this with config.
Parameters: |
|
---|---|
Raises : |
To extend provider typs, just add this new typ to this dict. see Creating a new Providerbackend for Iro
validator to test the existence of the typ.
Parameters: |
|
---|---|
Returns: |
|
Raises : |
Bases: iro.offer.provider.Provider
s. auch http.tuxad.com/sipgate.html und http://lists.sipgate.net/pipermail/sipgate-developers/2007-September/000016.html
http://www.sipgate.de/beta/public/static/downloads/basic/api/sipgate_api_documentation.pdf
See Creating a new Providerbackend for Iro for a tutorial, how to create a new provider backend. This turorial implements this provider.
send one fax to recimpient.
Parameters: |
|
---|---|
Returns: | a deferrer. |
Loads configuration into object.
Parameters: | cfg (dict) – The Configuration dict. Normally you use configParser.items("section"). |
---|
send msg to recipient.
Parameters: |
|
---|---|
Returns: | a deferrer, that returns a Status object |
Raises : |
send one SMS to recimpient.
Parameters: |
|
---|---|
Returns: | a deferrer |
XML-RPC url for sipgate
Bases: iro.offer.provider.Provider
A Provider to send SMS to recipients using smstrade. Smstrade only supports to send SMS and four diffrent routes: ["basic","economy","gold","direct"].
It needs a smstrade Gateway Key https://login.smstrade.de/index.php?gateway in configuration file.
smstrade API documentation: http://kundencenter.smstrade.de/sites/smstrade.de.kundencenter/__pdf/SMS-Gateway_HTTP_API_v2.pdf
The smstrade API supports a debug mode, that can be set with testmode.
returns a partial send() methed with bounded route, if typ and route is valid.
send one SMS to recipient via route
Parameters: |
|
---|---|
Returns: |
|
Bases: iro.error.ExternalException
An excetion that connects the status code with the excetion string (see statusCodes)
Class that represents the output of one smstrade request.
statuscodes of external smstrade API
Bases: iro.offer.provider.Provider
A SMTP Provider to send emails. This Provider has only one typ "mail" and one route None.
If testmode is True no mail will be send, only a connection is created to server.
sends a mail to recipient
Parameters: |
|
---|---|
Returns: |
|