Skip to content

Commit

Permalink
Update 01. Setup And Authentication.ipynb
Browse files Browse the repository at this point in the history
update for macos
  • Loading branch information
chuongmep committed Feb 27, 2024
1 parent fbf75ed commit 7ce428c
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions docs/Tutorials/01. Setup And Authentication.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
"metadata": {},
"source": [
"What you need to do is:\n",
"\n",
"1. Register an app on the [Autodesk Developer Network](https://aps.autodesk.com/en/docs/oauth/v2/tutorials/create-app/)\n",
"2. Get the `client id` and `client secret`\n",
"\n",
"3. Set Client ID and Client Secret in the invironment variable \n",
"3. Set Client ID and Client Secret in the environment variable \n",
"\n",
"- Windows: \n",
"\n",
"![image.png](attachment:image.png)\n",
"\n",
Expand All @@ -32,6 +35,22 @@
"Environment.SetEnvironmentVariable(\"APS_CLIENT_SECRET\", \"your_client_secret\");\n",
"```\n",
"\n",
"- Macos\n",
"\n",
"```bash\n",
"echo \"export APS_CLIENT_ID=<Your Client Id>\" >> ~/.zshrc\n",
"echo \"export APS_CLIENT_SECRET=<Your Client Secret> >> ~/.zshrc\n",
"```\n",
"\n",
"Recheck the environment variable make sure it's set correctly:\n",
"```bash\n",
"cat ~/.zshrc\n",
"```\n",
"In the case you need recheck all environment variable:\n",
"```bash\n",
"printenv\n",
"```\n",
"\n",
"2. Install Nuget package `APSToolkit`"
]
},
Expand Down Expand Up @@ -62,7 +81,7 @@
{
"data": {
"text/plain": [
"Loading extensions from `C:\\Users\\vho2\\.nuget\\packages\\microsoft.data.analysis\\0.21.1\\interactive-extensions\\dotnet\\Microsoft.Data.Analysis.Interactive.dll`"
"Loading extensions from `/Users/chuongmep/.nuget/packages/microsoft.data.analysis/0.21.1/interactive-extensions/dotnet/Microsoft.Data.Analysis.Interactive.dll`"
]
},
"metadata": {},
Expand Down Expand Up @@ -125,7 +144,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Token Authentication Successful\r\n"
"Token Authentication Successful\n"
]
}
],
Expand Down Expand Up @@ -161,7 +180,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Token Authentication Successful\r\n"
"Token Authentication Successful\n"
]
}
],
Expand Down

0 comments on commit 7ce428c

Please sign in to comment.