This git repository demonstrates how to send messages via PubNub's real-time network on OpenShift using Python.
Once you've created the quickstart, you'll need to create a PubNub account and add your authorization information to your Git repository. Making code changes will require you to set a public SSH key, and then to clone your new application Git repository onto your local machine. See the Getting Started page for more steps in this flow.
Step 1. Get a PubNub Account and Configure Your App
- Register at http://www.pubnub.com/free-trial
- Retrieve your account's publish and subscribe keys
- Edit the application file under wsgi folder
- Replace the demo keys in init_pubnub() function
"demo", # PUBLISH_KEY "demo", # SUBSCRIBE_KEY
Step 2. Deploy your app
git add . git commit -m "my first commit" git push
Step 3. View your app!
For PubNub's developer resources visit http://www.pubnub.com/devcenter
For more info on PubNub's Python SDK visit https://github.com/pubnub/python
For all available PubNub SDKs visit: https://github.com/pubnub/pubnub-api
Uses python-2.7 with code from https://github.com/pubnub/pubnub-openshift-quickstart