Created
April 23, 2014 21:14
-
-
Save bgriggs1/11232674 to your computer and use it in GitHub Desktop.
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
// api | |
var api_url = 'http://api.knackhq.com/v1/objects/object_1/records'; | |
// preparing filters | |
var filters = [ | |
{ | |
field: 'field_1', | |
operator: 'is', | |
value: 'test' | |
}, | |
{ | |
field: 'field_2', | |
operator: 'is not blank' | |
} | |
] | |
// add to URL | |
api_url += '?filters=' encodeURIComponent(JSON.stringify(filters)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment