Update dependency photosapi_client to v0.6.0 (#75)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| photosapi_client | minor | `==0.5.0` -> `==0.6.0` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4zNS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMzUuMCIsInRhcmdldEJyYW5jaCI6ImRldiJ9-->

Co-authored-by: profitroll <vozhd.kk@gmail.com>
Reviewed-on: #75
Co-authored-by: Renovate <renovate@git.end-play.xyz>
Co-committed-by: Renovate <renovate@git.end-play.xyz>
This commit is contained in:
2024-03-19 23:25:03 +02:00
committed by Profitroll
parent bd43ee15ae
commit 1ac5abd7bf
5 changed files with 16 additions and 18 deletions

View File

@@ -117,16 +117,14 @@ async def authorize(custom_session: Union[ClientSession, None] = None) -> str:
unauthorized_client = Client(
base_url=sync.config_get("address", "posting", "api"),
timeout=sync.config_get("timeout", "posting", "api"),
verify_ssl=True,
sync.config_get("address", "posting", "api"),
raise_on_unexpected_status=True,
follow_redirects=False,
timeout=sync.config_get("timeout", "posting", "api"),
)
login_token = login(
client=unauthorized_client,
form_data=BodyLoginForAccessTokenTokenPost(
body=BodyLoginForAccessTokenTokenPost(
grant_type="password",
scope="me albums.list albums.read albums.write photos.list photos.read photos.write videos.list videos.read videos.write",
username=sync.config_get("username", "posting", "api"),
@@ -141,12 +139,10 @@ if not isinstance(login_token, Token):
exit()
client = AuthenticatedClient(
base_url=sync.config_get("address", "posting", "api"),
timeout=sync.config_get("timeout", "posting", "api"),
verify_ssl=True,
raise_on_unexpected_status=True,
sync.config_get("address", "posting", "api"),
token=login_token.access_token,
follow_redirects=False,
raise_on_unexpected_status=True,
timeout=sync.config_get("timeout", "posting", "api"),
)
if __name__ == "__main__":