Skip to content

Instantly share code, notes, and snippets.

@maxvyaznikov
Last active August 29, 2015 14:09
Show Gist options
  • Save maxvyaznikov/fc641d8495d084248473 to your computer and use it in GitHub Desktop.
Save maxvyaznikov/fc641d8495d084248473 to your computer and use it in GitHub Desktop.
Mashery API 2.0 Trick
// Next request will return only fields of package_key objects
{
"method": "object.query",
"params": ["SELECT * FROM package_keys WHERE apikey='abcdefgh'"],
"id": 1
}
// But next one will return some related objects
// See http://support.mashery.com/docs/read/mashery_api/20/Query_Language for details
{
"method": "object.query",
"params": ["SELECT *, package, plan FROM package_keys WHERE apikey='abcdefgh'"],
"id": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment