This directory contains examples for SharePoint REST API v1
- Download a file:
./files/download.py - Upload a file:
./files/upload.py - Create a folder:
./folders/create.py - Upload large file:
./files/upload_large.py - List file version history:
./versions/list.py
- Create a list item:
/lists/create_item.py - Read list items (paged):
/lists/read_items.py - Update items in batch:
./listitems/update_batch.py - Delete an list item:
./listitems/delete.py
- Create lookup field:
create_lookup.py
- Get field value :
get_field_value.py
- Authenticate with cookies:
../auth_cookies.py- Demonstrates loading
FedAuth,rtFa,SPOIDCRLfrom Playwrightstorage_state.jsonand usingClientContext.with_cookies(...). - Optional
ttl_secondsparameter can periodically refresh cookies from the source.
- Demonstrates loading
- Capture cookies with Playwright (optional):
./auth/capture_cookies_with_playwright.py- Not a library dependency. Requires
pip install playwrightandplaywright install chromium. - Launches a browser to log in, then saves
storage_state.jsonwhich can be consumed by the cookie auth example.
- Not a library dependency. Requires