Ejemplo n.º 1
0
def list_catalogs():
    """ lists all catalogs made using my API key"""
    cat_list = catalog.list_catalogs()
    return cat_list
Ejemplo n.º 2
0
from pyechonest import config, catalog

config.ECHO_NEST_API_KEY = 'ZMBQQBZ4DBZVTKOTB'

while True:
  catalogs = catalog.list_catalogs()
  if len(catalogs) == 0:
    break

  for cat in catalogs:
    print "Deleting catalog " + cat.name
    cat.delete()