def list_notes(request, notebook_guid): notes = evernote_facades.list_notes(notebook_guid) response = [] for note in notes: note = evernote_facades.load_note(note['NoteId']) response.append(note) return HttpResponse(json.dumps(response), mimetype='application/json')
def load_note(request, guid): response = evernote_facades.load_note(guid) return HttpResponse(json.dumps(response), mimetype='application/json')