php pushwoosh
1.9.0
مكتبة PHP لإرسال الإشعارات بسهولة باستخدام خدمات الويب Pushwoosh REST.
// Create a Pushwoosh client
$ pushwoosh = Pushwoosh:: create ()
-> setApplication ( ' XXXX-XXX ' )
-> setAuth ( ' xxxxxxxx ' );
// Create a request for the '/createMessage' Web Service
$ request = CreateMessageRequest:: create ()
-> addNotification (Notification:: create ()-> setContent ( ' Hello Jean ! ' ));
// Call the REST Web Service
$ response = $ pushwoosh -> createMessage ( $ request );
// Check if its ok
if ( $ response -> isOk ()) {
print ' Great, my message has been sent ! ' ;
} else {
print ' Oups, the sent failed :-( ' ;
print ' Status code : ' . $ response -> getStatusCode ();
print ' Status message : ' . $ response -> getStatusMessage ();
}
سهل، أليس كذلك؟
إذا قمت بدمج php-pushwoosh في إطار عمل PHP شائع، فأخبرنا بذلك!
في Gomoob نقوم ببناء برامج عالية الجودة باستخدام أطر عمل رائعة مفتوحة المصدر كل يوم. هل ترغب في بدء مشروعك القادم معنا؟ هذا عظيم! اتصل بنا أو أرسل لنا بريدًا إلكترونيًا وسنقوم بالرد عليك في أقرب وقت ممكن!
يمكنك الاتصال بنا عبر البريد الإلكتروني على [email protected] أو عن طريق رقم الهاتف (+33) 6 85 12 81 26 أو (+33) 6 28 35 04 49.
تفضل بزيارة أيضًا http://gomoob.github.io لاكتشاف المزيد من البرامج مفتوحة المصدر التي نقوم بتطويرها.