Last active
August 29, 2015 14:09
-
-
Save maxvyaznikov/fc641d8495d084248473 to your computer and use it in GitHub Desktop.
Mashery API 2.0 Trick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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