All Projects → spontit → spontit-api-python-wrapper

spontit / spontit-api-python-wrapper

Licence: MIT license
Send functional, flexible push notifications to iOS, Android, and desktop devices (without your own app or website).

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to spontit-api-python-wrapper

browser-push
Complete workout and guidelines to add web push notifications support for your webapp without third-party notification provider
Stars: ✭ 67 (+91.43%)
Mutual labels:  push-notifications, push-api, push
Easynotifylibproject
Send firebase notifications to your users very easily: A new Android Lib
Stars: ✭ 31 (-11.43%)
Mutual labels:  notifications, push-notifications, push
PushMeBaby
iOS Push Notification Debug App. You can use this app during iOS Push Notification (development or production) to push notifications on your device from your Mac.
Stars: ✭ 47 (+34.29%)
Mutual labels:  notifications, notification, push
Notificationpusher
Standalone PHP library for easy devices notifications push.
Stars: ✭ 1,143 (+3165.71%)
Mutual labels:  notifications, push-notifications, push
andpush
Android Push Notification in Ruby: The fastest client for FCM (Firebase Cloud Messaging)
Stars: ✭ 83 (+137.14%)
Mutual labels:  notifications, push-notifications, push
Django Webpush
Web Push Notification Package for Django
Stars: ✭ 217 (+520%)
Mutual labels:  notifications, push-notifications, notification
Socket.io Push
整合了小米,华为,友盟,谷歌,苹果推送的统一解决方案
Stars: ✭ 605 (+1628.57%)
Mutual labels:  notifications, push-notifications, push
Push.js
The world's most versatile desktop notifications framework 🌎
Stars: ✭ 8,536 (+24288.57%)
Mutual labels:  notifications, push-notifications, push
React Native Onesignal
React Native Library for OneSignal Push Notifications Service
Stars: ✭ 1,270 (+3528.57%)
Mutual labels:  notifications, push-notifications, push
Onepush
消息推送用OnePush,就够了!
Stars: ✭ 1,401 (+3902.86%)
Mutual labels:  notifications, push-notifications, push
mobile-messaging-sdk-ios
Mobile Messaging SDK for iOS
Stars: ✭ 45 (+28.57%)
Mutual labels:  notifications, push-notifications, push
homebridge-http-rgb-push
Homebridge plugin to control a web/http-based RGB device.
Stars: ✭ 16 (-54.29%)
Mutual labels:  push-notifications, push
ejabberd mod gcm
Google Cloud Messaging API for Ejabberd (PUSH Messages)
Stars: ✭ 27 (-22.86%)
Mutual labels:  push-notifications, push
food-delivery-ios-app
A food delivery application built using Swift for iOS. The application uses Pushers notifications feature to send push notifications to mobile devices.
Stars: ✭ 36 (+2.86%)
Mutual labels:  pusher, push-notifications
mobpush-api-java-client
MobPush 服务端集成SDK for Java
Stars: ✭ 14 (-60%)
Mutual labels:  push-notifications, push-api
fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (+25.71%)
Mutual labels:  push-notifications, push
hms-cordova-plugin
This repo contains all of Cordova HMS plugins.
Stars: ✭ 78 (+122.86%)
Mutual labels:  push-notifications, push
snmp notifier
A webhook to relay Prometheus alerts as SNMP traps, because sometimes, you have to deal with legacy
Stars: ✭ 33 (-5.71%)
Mutual labels:  alerting, notification
gotify-push
Chrome Extension for Send Push Notification 🔔 to gotify/server ☁
Stars: ✭ 32 (-8.57%)
Mutual labels:  push-notifications, notification
hms-push-serverdemo-php
PHP sample code encapsulates APIs of the HUAWEI Push Kit server.It provides many sample PHP programs about quick access to HUAWEI Push Kit for your reference or usage.
Stars: ✭ 21 (-40%)
Mutual labels:  push-notifications, push

SPONTIT 📳

Check out our complete API documentation at api.spontit.com. Our API repository is available here.

Send push notifications without your own app. 👊

Using the Spontit API and Spontit app/webapp, you can send your own push notifications programmatically to Android, iOS, and Desktop devices. You can send your own in less than 5 minutes. 😎 🏆 (Without touching Swift, Objective-C, Java, XCode, Android Studio, the App Store approval process... 😵).

This repository is the Python wrapper for our API. To see code snippets for several languages, see our documentation here.

RAPID START 🏃

Spontit is 100% free! Please star the repo and rate/review the Spontit app in the App Store as well. Please invite a friend or two to Spontit!

  1. Sign up at spontit.com (you might need to click "Take me to the Desktop version"). Note down your username. It should be displayed on your profile once you are signed in.

  2. Get a secret key at spontit.com/secret_keys.

  3. Get the iPhone app or Android app. Sign in with the same account and allow notifications. See Step 11 to invite others.

  4. pip install spontit --upgrade && pip install requests

  5. from spontit import SpontitResource

  6. resource = SpontitResource(my_username, my_secret_key)

  7. response = resource.push("Hello!")

  8. Run the command help(SpontitResource) in Python for complete documentation.

  9. Or try an example! Check out the examples.

  10. You can customize the image of the notification on the website, iPhone app, or via the API by setting the image for the respective channel. See the image example titled create_new_channel_with_profile_image_and_push_to_it in the examples.

  11. To push to others, you can do two things.
    a) Have them sign up with a known email or phone number. Then push to them directly using their email or phone number. They do not have to follow you in order to receive the push. See simple_push_to_specific_phone_numbers_and_emails_example for an example (in the examples file).
    b) Have them follow the channel to which you will push (e.g. share spontit.com/my_username). You can see available invite options by calling print(resource.get_channel(...)) and supply the channel name. See the functions titled create_new_channel_and_get_invite_options and get_invite_options_for_my_main_account in the examples.

  12. Spontit is more than just broadcasting. You can send pushes to specific users and push personalized content. See how to do so at simple_push_to_specific_followers_example, simple_push_to_specific_phone_numbers_and_emails_example, and specific_followers_and_channel_example in the examples. You simply input a list of usernames and it will push to those users (provided they follow the specified channel) -- or input a list of phone numbers and emails (they do not have to follow the given channel; see part 11(a)). You can list the usernames of those who follow one of your specified channels. See an example of how to do so at list_followers_example and list_followers_for_channel_example in the examples.

  13. We are constantly working on expanding the functionality of Spontit. We GREATLY appreciate your input - feel free to add a feature request on our Github. 😃

Getting Started

Make an Account

First, go to spontit.com or download the Spontit app. Create an account and get your user ID. To see your user ID in the app, tap the "Profile" tab. To see your user ID on the website, look at the top of the screen.

You can change your user ID at any time here.

Generate a Secret Key

Once you have made an account, generate a secret key here. You might have to re-authenticate.

Push Notification UI Anatomy

You can change your user ID and display name at any time here.

Above we see a push notification sent to the main channel. Here, "Josh Wolff" is the display name of the user. The push message is the displayed text. The image shown is the personal profile picture of the user (see step 10 above). If the user opens the notification, they can open a link attached, if any, among other options (help(SpontitResource)). If they have an iPhone, they can like and comment on the notification.

Above we see a push notification to a channel (separate from the main channel). Josh owns this channel, but as you can see, it looks like its own account. "Dem 2020 Polls" is the channel name, the non-bold text is the message, and the image is the image set for the channel (see step 10 above). You can also change the push title with the pushTitle attribute.

Note on Our Development Priorities

We prioritize development of the iOS application over the website. If at any time, we describe a feature and it does not seem to be on the website, it might only exist in the iOS application. Please email us at info {at} spontit {dot} com so that we can clarify this to you and other developers. You are more than welcome to add a feature request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].