Skip to content

Instantly share code, notes, and snippets.

@danpalmer
Created November 17, 2014 11:16
Show Gist options
  • Save danpalmer/57543ce53d577c0f3c33 to your computer and use it in GitHub Desktop.
Save danpalmer/57543ce53d577c0f3c33 to your computer and use it in GitHub Desktop.
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