Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P Portal-api
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • doc
  • Portal-api
  • Wiki
  • Home

Home · Changes

Page history
Updated the example authored Apr 21, 2022 by Jurjen Brouwer's avatar Jurjen Brouwer
Show whitespace changes
Inline Side-by-side
Showing with 5 additions and 2 deletions
+5 -2
  • home.md home.md +5 -2
  • No files found.
home.md
View page @ 224cc8e7
...@@ -52,7 +52,7 @@ Example: ...@@ -52,7 +52,7 @@ Example:
} }
``` ```
If a valid combination of username, password, and the domain is given, a **bearer token** is returned which can be used to authorize the public API requests. If a valid combination of username, password, and the domain is given; a **bearer token** is returned which can be used to authorize the public API requests.
### 2.5 Items ### 2.5 Items
The logic of the API is divided into a number of items. Each item described a group on which we can perform certain actions. For example, with the item App we can create new apps in [portal.robotsindeklas.nl](https://portal.robotsindeklas.nl) or copy and/or share existing apps with your users. The logic of the API is divided into a number of items. Each item described a group on which we can perform certain actions. For example, with the item App we can create new apps in [portal.robotsindeklas.nl](https://portal.robotsindeklas.nl) or copy and/or share existing apps with your users.
...@@ -80,11 +80,14 @@ The API can return a few different status codes depending on if the call was suc ...@@ -80,11 +80,14 @@ The API can return a few different status codes depending on if the call was suc
### Examples ### Examples
The most common library in Python to make API requests is the library [`requests`](https://docs.python-requests.org/en/latest/). The requests library isn’t part of the standard Python library, so you’ll need to install it to get started. The most common library in Python to make API requests is the library [`requests`](https://docs.python-requests.org/en/latest/). The requests library isn’t part of the standard Python library, so you’ll need to install it to get started.
If you use pip to manage your Python packages, you can install requests using the following command: If you use pip to manage your Python packages, you can install `requests` using the following command:
``` ```
pip install requests pip install requests
``` ```
The following code will make a request to obtain a valid Bearer token and then create a new app with the name 'Demo app':
```python ```python
import requests import requests
......
Clone repository
  • App API
  • Folder API
  • Group API
  • Robot API
  • User API
  • Home