

In order to setup authentication and initialization of the API client, you need the following information.
Forecast bar app api install#
Invoke pip install -r test-requirements.txt.From terminal/cmd navigate to the root directory of the SDK.unittest is used as the testing framework and nose is used as the test You can test the generated SDK and the server with automatically generated testĬases. To run the file within your test project, right click on your Python file inside your Test project and click on Run Sample code is given in the subsequent sections. In your python file you will be required to import the generated python library using the following code lines from weather_api.weather_api_client import WeatherApiClientĪfter this you can write code to instantiate an API client object, get a controller object and make API calls. The project files will be displayed in the side bar as follows:Ĭreate a new directory by right clicking on the solution name as shown below:Īdd a python file to this project with the name "testsdk" The basic workflow presented here is also applicable if you prefer using a different editor or IDE.Ĭlick on Open in P圜harm to browse to your generated SDK directory and then click OK.
Forecast bar app api how to#
The following section explains how to use the WeatherApi SDK package in a new project. This should install all the required dependencies.

You must have Python 2 >=2.7.9 or Python 3 >=3.4 installed on your system to install and run this SDK. This is the new API for weather forecasting.
