Python-pushsafer Client error during import

Pushsafer make it easy and safe to get push-notifications in real time on your Android or Windows mobile device, iPhone, iPad and Desktop!

Mit Pushsafer kann man in Echtzeit, einfach und sicher, Push-Benachrichtigungen auf sein iPhone, iPad, Android oder Windows Gerät sowie auf den Desktop senden lassen!

======================
Google Play
App Store
Windows Store
Homepage
User avatar
admin
Site Admin
Posts: 943
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Python-pushsafer Client error during import

Postby admin » 19. Sep 2018, 22:13

works like charme, I just tested it!

You already installed the python-pushsafer package successfully.
Now create a file like pushsafer.py

Past the script:

Code: Select all

from pushsafer import init, Client

init("yourprivatekey")
Client("").send_message("Message", "Hello", "119", "1", "4", "2", "https://www.pushsafer.com", "Open Pushsafer", "0", "2", "60", "600", "1", "", "", "")
Replace your private key and the other parameter to your needs! Save the modification!

Now run the script
Zwischenablage01.png
Zwischenablage01.png (32.31 KiB) Viewed 6700 times
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10

User avatar
admin
Site Admin
Posts: 943
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Python-pushsafer Client error during import

Postby admin » 19. Sep 2018, 22:22

try to use absolute paths, like discribed here
https://www.pythoncentral.io/execute-py ... ile-shell/
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10

User avatar
admin
Site Admin
Posts: 943
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Python-pushsafer Client error during import

Postby admin » 20. Sep 2018, 18:43

yes, tested with version 3.6
Please try to get help in a pyton board, iam not a python developer!

Kevin
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10


Who is online

Users browsing this forum: No registered users and 34 guests