From 7f780670fd8f957fdae50cd755c64554a1eebe4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Bj=C3=B8rkelund=20Haugen?= Date: Wed, 8 Jan 2025 08:36:11 +0100 Subject: [PATCH] Add one more example --- README.md | 2 +- examples/usage_examples.ipynb | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6776060..b3acf5e 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ For fundamental questions please refer to the MSAL documentation which has [code You should also familiarize yourself with the [azure.identity](https://learn.microsoft.com/en-us/python/api/overview/azure/identity-readme?view=azure-python) package, which we will use below. -Follow [client credentials flow example](https://github.com/equinor/omnia-timeseries-python/blob/main/examples/client_secret_auth.ipynb) to learn how to retrieve data in `Json` format. +Follow [client credentials flow example](https://github.com/equinor/omnia-timeseries-python/blob/main/examples/usage_example.ipynb) to learn how to retrieve data in `Json` format. Follow [get data as protobuf example](https://github.com/equinor/omnia-timeseries-python/blob/main/examples/get_data_protobuf.ipynb) to learn how to retrieve data in `Protobuf` format. ### Preparing Azure authentication diff --git a/examples/usage_examples.ipynb b/examples/usage_examples.ipynb index a356452..85098be 100644 --- a/examples/usage_examples.ipynb +++ b/examples/usage_examples.ipynb @@ -72,6 +72,22 @@ "endTime=\"2024-12-09T15:00:01.000Z\"" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Search Timeseries API" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "api.search_timeseries(limit=10)" + ] + }, { "cell_type": "markdown", "metadata": {},