thorcast_api_client 0.1.3__tar.gz → 0.1.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: thorcast_api_client
3
- Version: 0.1.3
3
+ Version: 0.1.4.2
4
4
  Summary: Un client Python pour interagir avec l'API ThorCast
5
5
  Author: JBCAYRE
6
6
  Author-email: jcayre@mint.eco
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "thorcast_api_client"
3
- version = "0.1.3"
3
+ version = "0.1.4.2"
4
4
  description = "Un client Python pour interagir avec l'API ThorCast"
5
5
  authors = ["JBCAYRE <jcayre@mint.eco>"]
6
6
  readme = "README.md"
@@ -13,8 +13,7 @@ class AuthManager:
13
13
  def authenticate(self):
14
14
  """Récupère un token JWT"""
15
15
  url = f"{API_BASE_URL}/backend/auth/token/"
16
- payload = {"username": self.username, "password": self.password}
17
-
16
+ payload = {"email": self.username, "password": self.password}
18
17
  response = requests.post(url, json=payload)
19
18
  if response.status_code == 200:
20
19
  data = response.json()
@@ -1,4 +1,4 @@
1
- API_BASE_URL = "https://api.thorcast.com"
1
+ API_BASE_URL = "https://profilage-api.holmium-consulting.com"
2
2
  HEADERS = {
3
3
  "Accept": "application/json",
4
4
  "Content-Type": "application/json",