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
Update home authored Jun 26, 2023 by Diony Tadema's avatar Diony Tadema
Hide whitespace changes
Inline Side-by-side
Showing with 4 additions and 6 deletions
+4 -6
  • home.md home.md +4 -6
  • No files found.
home.md
View page @ ab91b499
...@@ -103,18 +103,16 @@ response = requests.post(f"{URL}/auth/getToken", json=data_auth) ...@@ -103,18 +103,16 @@ response = requests.post(f"{URL}/auth/getToken", json=data_auth)
result = response.json() result = response.json()
token = result["token"] # Get the bearer token from the json token = result["token"] # Get the bearer token from the json
AUTH = {
"Authorization": f"Bearer {token}"
}
data_app = { data_app = {
"name": "Demo app", "name": "Demo app",
"type": "code" "type": "code"
} }
headers = { response = requests.post(f"{URL}/app/create", json=data_app, headers=AUTH)
"Authorization": f"Bearer {token}"
}
response = requests.post(f"{URL}/app/create", json=data_app, headers=headers)
result = response.json() result = response.json()
app_id = result["_id"] # Get the app id app_id = result["_id"] # Get the app id
......
Clone repository
  • App API
  • Folder API
  • Group API
  • Robot API
  • User API
  • Home