Coder Social home page Coder Social logo

smsglobal / example-python-rest-client Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 6.0 128 KB

DEPRECATED -- PYTHON example of our REST API. With one of our many API’s integrate SMS into your existing CRM, e-commerce platform or business application.

Home Page: http://smsglobal.com/api-sms/

Python 100.00%

example-python-rest-client's People

Contributors

phradion avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

example-python-rest-client's Issues

Problem accessing the API

I cloned the project and ran the same with

./SMSGlobalAPIConsumer.py -v <key> <secret>

With the following output

send: 'GET /v1/balance HTTP/1.1\r\nHost: api.smsglobal.com\r\nAccept-Encoding: identity\r\nAccept: application/json\r\nAuthorization: MAC id="fa8ab458554411c7de1cd6cf76a5c4ac",ts="1382491836",nonce="9a83152def6a6da1c86eedadfc9d6b36",mac="d5bk0m5wvtbRUkYjMJhj0eTHqMJESNuIBsnCZpfNbII="\r\nUser-Agent: SMS Python Client\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Server: nginx
header: Content-Type: application/json
header: Content-Length: 0
header: Connection: keep-alive
header: Cache-Control: no-cache
header: Date: Wed, 23 Oct 2013 01:30:36 GMT
header: Set-Cookie: NSC_203.89.199.54_80=ffffffffc3a00f3045525d5f4f58455e445a4a423660;expires=Wed, 23-Oct-2013 11:30:36 GMT;path=/;httponly
Traceback (most recent call last):
  File "./SMSGlobalAPIConsumer.py", line 16, in <module>
    balance = json.loads(apiWrapper.get("balance"))
  File "/home/ian/hack/example-python-rest-client/SMSGlobalAPI/wrapper.py", line 33, in get
    return self.connect("GET", action, id)
  File "/home/ian/hack/example-python-rest-client/SMSGlobalAPI/wrapper.py", line 66, in connect
    raise Exception("There's problem accessing API")
Exception: There's problem accessing API

I've double checked my key and secret and they seem all okay. I also tried out the ruby wrapper and came across the same issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.