- Posts: 8
COMMUNITY FORUM
K2 REST API for push messages
- Valentine Solo
- Topic Author
- Offline
- New Member
Less
More
8 years 1 month 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: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.
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"
}
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 1 month ago #158771
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
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.
- Dennis Kolp
- Offline
- New Member
Less
More
- Posts: 1
7 years 1 month 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
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 1 month ago #164879
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
- Extension Base
- Offline
- New Member
Less
More
- Posts: 1
6 years 10 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.
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 10 months ago #166270
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic K2 REST API for push messages
Nice one :)
Kudos!
Kudos!
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.