File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ The following snippet shows an example of the creation and setup of the ``ApiCli
33
33
34
34
.. code-block :: python
35
35
36
+ # Python
37
+
36
38
import os
37
39
from dotenv import load_dotenv()
38
40
@@ -50,3 +52,24 @@ The following snippet shows an example of the creation and setup of the ``ApiCli
50
52
}
51
53
52
54
api_client = sim.ApiClient(configuration)
55
+
56
+
57
+ .. code-block :: csharp
58
+
59
+ // C#
60
+
61
+ using System ;
62
+ using SimScale .Sdk .Api ;
63
+ using SimScale .Sdk .Client ;
64
+ using SimScale .Sdk .Model ;
65
+ using dotenv .net ;
66
+
67
+ DotEnv .Load ();
68
+
69
+ var API_KEY = System .Environment .GetEnvironmentVariable (" SIMSCALE_API_KEY" )
70
+ var API_HOST_URL = " https://api.simscale.com/v0"
71
+
72
+ Configuration configuration = new Configuration ();
73
+
74
+ configuration .BasePath = API_HOST_URL
75
+ configuration .ApiKey .Add (" X-API-KEY" , API_KEY )
You can’t perform that action at this time.
0 commit comments