Skip to content

Instantly share code, notes, and snippets.

@jasonrhaas
Last active August 29, 2015 14:17
Show Gist options
  • Save jasonrhaas/152307388a1ea553ac09 to your computer and use it in GitHub Desktop.
Save jasonrhaas/152307388a1ea553ac09 to your computer and use it in GitHub Desktop.
GNIP for allowing outside parties to manage the GNIP ruleset
GET (pull ruleset)
{
"stream": "prod-darpa", # GNIP stream to pull rules from. Choices are `prod-darpa` or `dev-darpa`
"rules": [
{"tag": "House", "value": "Highgarden"},
{"tag": "Tyrell", "value": "Mace"},
{"tag": "Tyrell", "value": "Margery"},
]
}
POST (new rules)
{
"stream"; "prod-darpa", # GNIP stream ruleset to update
"rules": [
{"tag": "Lannister", "value": "Tywin"},
{"tag": "Lannister", "value": "Jaime"},
]
}
PUT (update rules)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment