Skip to content

Commit

Permalink
example for getting resource uris from session relevance results.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Apr 10, 2023
1 parent 3dfc844 commit 7ce1bb1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/export_bes_by_relevance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""
Example export bes files by session relevance result
requires `besapi`, install with command `pip install besapi`
"""
import besapi


def main():
"""Execution starts here"""
print("main()")
bes_conn = besapi.besapi.get_bes_conn_using_config_file()
bes_conn.login()

print(bes_conn.last_connected)

session_relevance = '(type of it as lowercase & "/custom/" & name of site of it & "/" & id of it as string) of custom bes fixlets whose(name of it as lowercase contains "oracle")'

result = bes_conn.session_relevance_array(session_relevance)

print(result)

# TODO: export files


if __name__ == "__main__":
main()

0 comments on commit 7ce1bb1

Please sign in to comment.