} else: _log('++ failed to find corporate user with email: {}'.format( author_email)) returned = self.create_entity('Note', note_args) if returned['changeType'] == 'INSERT': return returned['changedEntityId'] else: raise Exception('++ failed to create note: {}'.format( json.dumps(returned))) if __name__ == '__main__': from hello_webapp.app import create_app app = create_app() with app.app_context(): bapi = BullhornApi() test_id = 59632 test_id2 = 95576 # bapi.get_candidate(test_id) # bapi.get_candidate_notes(test_id) # notes = bapi.query_notes(test_id) # candidates = bapi.get_all_candidates() # candidates = bapi.search_candidates('Max Fowl') # candidates = bapi.search_candidates('*****@*****.**') # candidates = bapi.fast_find_candidates('*****@*****.**') # # # print len(candidates) # for c in candidates: # print c['entityId']
from hello_webapp.app import create_app application = create_app() if __name__ == "__main__": application.run()