Created
November 17, 2014 11:16
-
-
Save danpalmer/57543ce53d577c0f3c33 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
import xmlrpclib | |
server = xmlrpclib.Server('http://magentohost/api/xmlrpc') | |
token = server.login('username', 'api_token') | |
def call(method, *args): | |
return server.call(token, method, *args) | |
print call('catalog_product.list', [{ | |
'complex_filter': [{ | |
'key': 'type', | |
'value': [{ | |
'key': 'in', | |
'value':'configurable', | |
}], | |
}], | |
}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment