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

Extension JSON structure #1

Open
kayex opened this issue Feb 7, 2017 · 1 comment
Open

Extension JSON structure #1

kayex opened this issue Feb 7, 2017 · 1 comment

Comments

@kayex
Copy link
Contributor

kayex commented Feb 7, 2017

Config

{
    "slack_token": "xoxp-234234234-23234234-234234324234234-2342343242433",
    "config": {
        "thumbs_up": {},
        "bad_words": {
            "strict": true
        }
    }
}

The presence of an EID (extension ID) key in the config object indicates that the extension should be enabled. The extension config is contained within the corresponding object value.

As posted by @adsa95.

@kayex
Copy link
Contributor Author

kayex commented Mar 6, 2017

Config v2

Most recent JSON structure proposal, with support for HTTP extensions:

{
    "slack_token": "xoxp-234234234-23234234-234234324234234-2342343242433",
    "extensions": {
        "thumbs_up": {},
        "bad_words": {
            "strict": true
        }
    },
    "http_extensions": {
        "https://example.com/bad-words": {
            "strict": true
        }
    }
}

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

No branches or pull requests

1 participant