Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Interface for Integrations #124

Open
ethanmick opened this issue Apr 3, 2015 · 2 comments
Open

Create Interface for Integrations #124

ethanmick opened this issue Apr 3, 2015 · 2 comments
Assignees

Comments

@ethanmick
Copy link
Member

For Mike's steam bot.

@ethanmick ethanmick self-assigned this Apr 3, 2015
@stormageddon
Copy link

yay steam_buddy!

@ethanmick
Copy link
Member Author

I'm thinking each group will get it's own API key.

Services can then:

POST https://api.fastchat.io/v1/group/integration?apikey=awsomekey HTTP 1.1
{
  "name": "bot",
  "text": "some text here that will show up in the group convo...",
}

FastChat will lookup the APIKey for the group, and send the message to the correct place. ApiKeys can be regenerated if any service refuses to stop sending messages.

The FastChat Server will monitor groups for commands sent to any bot/integration. Only those messages will be forwarded to the service via an HTTP call.

{
  "group": "groupidhere",
  "text": "Message text to the integration",
  "from": "useridhere"
}

This provides a safe, secure, and easy way for integrations to listen in to conversations without them tracking the entire conversation. It is up to the integration to parse and handle the message text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants