Skip to content

Commit

Permalink
update docs - add section about factories
Browse files Browse the repository at this point in the history
  • Loading branch information
CralixRaev committed Jan 20, 2024
1 parent a88d782 commit 00be51b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ async def main():
asyncio.run(main())
```

## Factories
In order to pass same auth data in all context managers, you can use factories:
```python
import os
from marketplace_apis.ozon.seller_api import SellerApiFactory

seller_api = SellerApiFactory(os.getenv("API_KEY"), os.getenv("CLIENT_ID"))
async with seller_api() as client:
# do something...
pass
```
Same works with MarketApi. (Use MarketApiFactory for that)

## Currently supported api endpoints:

#### OZON SellerAPI
Expand Down

0 comments on commit 00be51b

Please sign in to comment.