A lot of great tools use the implementation of webhooks. It would be outstanding if a sharing option would be available to send an article, in a json format to a given webhook.
Things i personally use webhooks in Messiging boards or Slack and Telegram
Hello,
Would you be able to provide an example of API and data format, which would be appropriate for this use-case?
Hello Alkrex,
What it really is is a bunch of json data that is shared between apis here is a slack example.
Lets say I'd like to send this to a slack channel:
{
"text": "This is posted to #general and comes from *monkey-bot*.",
"channel": "#general",
"link_names": 1,
"username": "monkey-bot",
"icon_emoji": ":monkey_face:"
}
via
curl -X POST \
-H 'Content-type: application/json' \
--data '{"text": "This is posted to #general and comes from *monkey-bot*.", "channel": "#general", "link_names": 1, "username": "monkey-bot", "icon_emoji": ":monkey_face:"}' \
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
which would result in
Sorry, I am not much of a web developer so my language is quite terrible.
very nice! Thank you.
I've tried your message on Slack message API builder without success.
Could you explain how you managed to render your message?
Could you render a real example in Slack and its counterpart in FreshRSS to see what you imagine sharing?
Same comment as here.
The main difference between that share and the one we already have is the HTTP action. ATM we only use the GET action but this one requires a POST action.
It's not as easy as it sounds at the first glance.
Here is something that might help!
sorry for the late reply: i was hoping to display something along the line of:
curl -X POST -H 'Content-Type: application/json' --data '{"username":"Reuters","text":"Technology","attachments":[{"title":"Tech companies wage war on disease-carrying mosquitoes","title_link":"http://www.reuters.com/article/us-intl-fin-hongkong-fintech-idUSKBN19W0T8?feedType=RSS&feedName=technologyNews&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+reuters%2FtechnologyNews+%28Reuters+Technology+News%29","text":"HONG KONG (Reuters) - Hong Kong-based startup CompareAsiaGroup has secured $50 million in funding from investors led by the World Banks commercial lending arm, as the personal finance management platform looks to develop its technology and launch more products.","image_url":"http://s2.reutersmedia.net/resources/r/?m=02&d=20170711&t=2&i=1192468154&w=200&fh=&fw=&ll=&pl=&sq=&r=LYNXMPED6A06G","color":"#764FA5"}]}' https://chat.myurlwhat.de/hooks/u4JsS43554345k6N9j/09823749823714982374Qxh64ZsRagZRT5p
which would lead to
In the end an auto share option for a catagory would be great. lets say i have a news section and i would always like to push it to a certain slack channel, i could set a tickmark for autoshare to webhook
Most helpful comment
Hello Alkrex,
What it really is is a bunch of json data that is shared between apis here is a slack example.
Lets say I'd like to send this to a slack channel:
via
which would result in