This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
ApplicationsApi.list_application fails #1
Comments
Running the example here gives:
|
Did you ever get this to work? |
No, but here is a workaround. :) import json
import os.path
import httpx
def list_applications(client, context):
environments = client.get(f"/project/{context['project_id']}/environment").json()["results"]
for environment in environments:
applications = client.get(f"/environment/{environment['id']}/application").json()["results"]
for application in applications:
yield application
context_path = os.path.expanduser("~/.qovery/context.json")
with open(context_path) as context_file:
context = json.load(context_file)
client = httpx.Client(
base_url="https://api.qovery.com",
headers={"Authorization": f"Bearer {context['access_token']}"},
)
for application in list_applications(client, context):
... |
Awesome, thanks so much! Would you happen to have any small apps built with the APIs that you could share? We're struggling a bit to get off the ground using these APIs. We've been trying to get this puppy to spit out an organizationId for the past two weeks. UPDATE: Got it figured out using your code snippet above and digging into qovery-cli. Thanks again for the pointers... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Running
fails with
The text was updated successfully, but these errors were encountered: