Keyword

K2 REST API for push messages

  • Valentine Solo
  • Valentine Solo's Avatar Topic Author
  • Offline
  • New Member
More
7 years 5 months ago #158750 by Valentine Solo
K2 REST API for push messages was created by Valentine Solo
Hello again! Dear stuff and community members,
I made a long way and implemented push web notifications subscription on my website. And it works fine. Still I don't know how to connect my Joomla K2 to its REST API, which is pretty easy by the way.

POST JSON body:
{
	"app_id" : "f9fdxxxxxxxxxxxxxxxxxx6676",
	"contents" : { "en" : "Hello from REST" },
	"included_segments" : ["All"],
	"headings" : {"en": "News up here"},
	"url" : "http://www.google.com"
}
as follows from documentation.onesignal.com/reference#section-example-code

I used Postman service to generate Json post requests and it works, but it is still manually and has no connection with website database.
All I want is that new K2 articles (title, url) like RSS were feeding my push server acc on OneSignal. Unfortunately, I'm not strong backend dev to finish such integration. So I would appreciate any hints.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 5 months ago #158771 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 REST API for push messages
You can have GET request with K2 by applying ?format=json as a suffix to the URL

Example URL: www.joomlaworks.net/blog/item/264-tabs-sliders-has-a-new-home?format=json

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #164846 by Dennis Kolp
Replied by Dennis Kolp on topic K2 REST API for push messages
I suggest the ZetPush zetpush.com/ a nice tool for push notifications.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 5 months ago #164879 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 REST API for push messages
One Signal is also an interesting service, although I have not used it in any Joomla! projects.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #166255 by Extension Base
Replied by Extension Base on topic K2 REST API for push messages
hi Krikor,

we developed a joomla component and a set of plugins for sending push notifications by using OneSignal API.

Component helps sending scheduled and automated push notifications through Joomla Administrator area.

There are plugins for K2 too.

K2 Plugin helps site admin to send automatically push notifications when a K2 Item is saved.

There is also a Button plugin, with the help of this plugin, site admin can send push notifications any time inside the K2 Item.

You can read more about this component and plugin here :
www.extensionbase.com/web-push-notifications-for-k2.html

Screenshots are available here :
www.extensionbase.com/demos/k2-web-push-notifications-auto-demo.html

We also applied to getk2 website and waiting the approval :)

If you have any questions please never hesitate to ask ....

Thanks and have a great day to all.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #166270 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 REST API for push messages
Nice one :)
Kudos!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum