Skip to content

Commit

Permalink
added onedrive settings
Browse files Browse the repository at this point in the history
  • Loading branch information
opaduchak committed Nov 5, 2024
1 parent 91667f1 commit 5bc93a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addon_imps/storage/onedrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ async def list_root_items(self, page_cursor: str = "") -> storage.ItemSampleResu
total_count=1,
)

async def build_wb_config(self, root_folder_id: str, service_name: str) -> dict:
async with self.network.GET("me/drive") as _response:
json = await _response.json_content()
return {
"folder": root_folder_id,
"drive_id": json.get("id"),
}

async def get_item_info(self, item_id: str) -> storage.ItemResult:
async with self.network.GET(
f"me/drive/items/{item_id}",
Expand Down

0 comments on commit 5bc93a7

Please sign in to comment.