Skip to content

Commit 57c316f

Browse files
committed
pass token and api host in function
1 parent b66489b commit 57c316f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/client/samples/analysis_kits/stocks_to_use_price_model/stocks_to_use_price_model.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
"\n",
4545
"from groclient import GroClient\n",
4646
"\n",
47-
"client = GroClient()\n",
47+
"API_HOST = 'api.gro-intelligence.com'\n",
48+
"TOKEN = os.environ['GROAPI_TOKEN']\n",
49+
"client = GroClient(API_HOST, TOKEN)\n",
4850
"\n",
4951
"# define region\n",
5052
"UNITED_STATES_REGION_ID = client.search_for_entity('regions', 'United States')\n",

0 commit comments

Comments
 (0)