Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    python-foneworx 0.1

    Download button

    No screenshots available
    Downloads: 181  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Simon de Haan | More programs
    BSD License / FREE
    May 5th, 2011, 12:12 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    python-foneworx description

    Foneworx XML API library

    python-foneworx is a Twisted-based library for interacting with Foneworx.co.za's XML API.

    Methods implemented:

    - Login
    - Logout
    - NewMessages
    - DeleteNewMessages
    - SendMessages
    - SentMessages
    - DeleteSentMessages

    Usage:


    It runs in Twisted, uses Trial for unittests.

    virtualenv --no-site-packages ve
    source ve/bin/activate


    Run the client tests, the responses for these are mocked and do not need a Foneworx account set up.

    (ve)$ trial tests.client_tests

    Run the connection tests, these tests do actually connect to Foneworx to send & receive SMSs. Running these tests will cost you money / SMS credits.

    (ve)$ MSISDN=+27xxx USERNAME=xxx PASSWORD=xxx trial tests.connection_tests

    Part of the tests is a full stack: receive, reply, delivery report & delete.

    (ve)$ USERNAME=xxx PASSWORD=xxx trial \
    > tests.connection_tests.FoneworxConnectionTestCase.test_full_stack
    tests.connection_tests
     FoneworxConnectionTestCase
     test_full_stack ... Please send a test SMS to Foneworx in order to fill the inbox.
    Checking for new SMSs every 2 seconds
    Checking for new SMSs every 2 seconds
    Checking for new SMSs every 2 seconds
    Checking for new SMSs every 2 seconds
    Replying to an SMS received from +27xxxxxxxxx
    Waiting until delivered
    Not delivered yet: At Network
    Not delivered yet: At Network
    Not delivered yet: At Network
    Delivered!
    Deleting the received message
    Deleted: Success
    Deleting the sent message
    Deleted: None
    Logging out
    Logged out: Success
     [OK]

    --------------------------------------------------
    Ran 1 tests in 51.191s


    PASSED (successes=1)


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Foneworx API | XML library | Foneworx | XML | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM