weekly-talks / nodejs-weekly

20 минут, каждую среду в 14:30 UTC+3, живой разговор о новостях node.js
MIT License
3 stars 0 forks source link

hoist.io #14

Open irnc opened 9 years ago

irnc commented 9 years ago

If this, then: code. Trigger code on events in your favorite web services.

http://hoist.io/

местный кружок https://weekly-talks.slack.com/messages/hoist_io/

irnc commented 9 years ago

Регистрация

Нет возможности аутентификации через сторонние провайдеры. Только через указание email + password. Спасибо за то, что Chrome может сохранить пароль.

Программирование тригера для Slack

The application Hoist has requested permission to:

Set up an outgoing webhook in Slack

Тест, консоль со стороны hoist

 WARNINGS OR ERRORS:
[22:24:48] DEPLOY Update complete
[22:24:48] EVT event POST:DEPLOY raised (id: d8ae4418be3f4e26a8c737348f317877)
[22:25:00] EVT event POST:DEPLOY complete (id: d8ae4418be3f4e26a8c737348f317877)
[22:25:33] EVT event slack:message:received raised (id: 32a95a379e1e40abbe6901ad534c3bda)
[22:25:33] MDL module 75e733c9-45fe-4843-83c6-c35b8ce677f8 starting (from event id: 32a95a379e1e40abbe6901ad534c3bda)
[22:25:40] MDL module 75e733c9-45fe-4843-83c6-c35b8ce677f8 completed in 8732.816191ms (from event id: 32a95a379e1e40abbe6901ad534c3bda)
[22:25:40] EVT event slack:message:received complete (id: 32a95a379e1e40abbe6901ad534c3bda)
irnc commented 9 years ago
//This demo will receive a message from the event and send a new
//message back straight away

module.exports = function(event) {

  return Hoist.bucket.set('default')
      .then(function() {

          return Hoist.connector('slack').get('/chat.postMessage', {
              channel: event.payload.channel_id,
              text: 'Hi, ' + event.payload.user_name + '. I don\'t know what you\'re talking about.',
              username: 'Jarvis',
              icon_emoji: ':bowtie:'
          });

      });

};
irnc commented 9 years ago

Hoist was launched out of EndGame in 2013 in reponse to the huge amount of integration demand. Hoist is now based in San Francisco and is serving the developer community world-wide. --- http://www.end-game.com/

Интересно будет почитать блог http://www.hoist.io/blog/, например, из последнего:

As the web portal was scaled across more and more servers, with traffic routed via Amazon's Elastic Load Balancer as well as NGINX instances, the sockets kept dropping out, or not connecting at all. While fantastic technology, it turns out Websockets break standard web infrastructure. --- http://www.hoist.io/blog/new-users-and-bottlenecks/

irnc commented 9 years ago

И главный вопрос, несмотря на то, что страница https://portal.hoist.io/ содержит ссылку на https://hoist.io/pricing - информации о ценах нет.