21 lines
604 B
Python
Raw Normal View History

2025-03-18 00:17:27 +05:30
from requests import Request
from vinetrimmer.vendor.BamSDK.services import Service
# noinspection PyPep8Naming
class bamIdentity(Service):
def identityLogin(self, email, password, access_token):
endpoint = self.client.endpoints["identityLogin"]
req = Request(
method=endpoint.method,
url=endpoint.href,
headers=endpoint.get_headers(accessToken=access_token),
json={
"email": email,
"password": password
}
).prepare()
res = self.session.send(req)
return res.json()