I’m trying to pull a list of all our applications and generate a report of when credentials were last updated. When I get the first page of apps, I’m able to view app.settings.oauth_client
to determine application type. However, all the results from subsequent pages have a very limited settings
attribute. It seems like the API endpoint returns full results if I use Postman. Example python code.
async def fetch_applications(client):
print("Fetching applications...")
query_parameters = {'limit': '200'}
app_list = []
apps, resp, err = await client.list_applications(query_parameters)
if err:
print("Error", err)
return
app_list.extend(apps)
print(len(app_list))
while resp.has_next():
apps, err = await resp.next()
app_list.extend(apps)
print(len(app_list))
return app_list