Skip to content

Commit

Permalink
Update api.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmalza committed Jan 26, 2019
1 parent 7d94ec1 commit 7c3f9bc
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,5 @@ Using the link in the main menu "**Schema API**" it will be possible to display

.. code-block:: python
# importing the requests library
import requests
# api-endpoint
URL = "http://demo.myaida.io/temp_mainapi/"
# param defined here
user_name = "demo"
pass = "xxxxxxx"
# defining a params dict for the parameters to be sent to the API
PARAMS = {'username':user_name, 'password':pass}
# sending get request and saving the response as response object
r = requests.get(url = URL, params = PARAMS)
# extracting data in json format
data = r.json()
import requests

0 comments on commit 7c3f9bc

Please sign in to comment.