Skip to content

adds download util and fixes assign/unassign devices#25

Merged
kaincenteno merged 3 commits intomainfrom
activity_download
Dec 2, 2025
Merged

adds download util and fixes assign/unassign devices#25
kaincenteno merged 3 commits intomainfrom
activity_download

Conversation

@kaincenteno
Copy link
Owner

@kaincenteno kaincenteno commented Dec 2, 2025

adds a download util to download the resulting file from OrgDeviceActivity object

adds an initial wait time of 10 seconds for the result of assign/unassign devices to prevent rate limitting

updates parameters from device_id to device_ids when refering to a list of devices

updates unassignment/assignment command to include downloading the CSV with the result

updates cli.md and readme.md with changes

Change polling interval from exponential backoff to linear and add initial delay. This prevents hitting rate limits while waiting for device activity completion.
Add download_activity_csv utility function to handle downloading activity reports
and integrate it with both assign_device and unassign_device commands to provide
users with downloaded CSV files when available.
@kaincenteno kaincenteno merged commit 28240a9 into main Dec 2, 2025
1 check passed
@kaincenteno kaincenteno deleted the activity_download branch December 2, 2025 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant