def get_content_item(key): """ Gets deployed content for the specified key. """ cfg = get_cfg() resource = get_content_resource() return resource.get(params={'content_type_slug':slugify(cfg.get('Connection','content_type')),'content_key':key})
def get_content_item(key,args): """ Gets deployed content for the specified key. """ env = cfg.get_env() resource = ac.get_resource('axilent.content','content',cfg.get_api_key(args),args) return resource.get(params={'content_type_slug':slugify(env.get('Dox','content_type')),'content_key':key})
def get_content_keys(): """ Gets the keys for the conten type. """ cfg = get_cfg() api = get_content_api() keys = api.getcontentkeys(content_type_slug=slugify(cfg.get('Connection','content_type'))) return keys
def get_content_keys(args): """ Gets the keys for the conten type. """ api = ac.get_client('axilent.content',cfg.get_api_key(args)) env = cfg.get_env() keys = api.getcontentkeys(content_type_slug=slugify(env.get('Dox','content_type'))) return keys