8000 added option to specify chinese servers by ardevd · Pull Request #95 · ardevd/jlrpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

added option to specify chinese servers #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
11 changes: 10 additions & 1 deletion jlrpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def __init__(self,
email='',
password='',
device_id='',
refresh_token=''):
refresh_token='',
use_china_servers=False):
"""Init the connection object

The email address and password associated with your Jaguar InControl account is required.
Expand All @@ -34,6 +35,14 @@ def __init__(self,
"""
self.email = email

if use_china_servers:
global IFAS_BASE_URL
IFAS_BASE_URL = "https://ifas.prod-chn.jlrmotor.com/ifas/jlr"
global IFOP_BASE_ULR
IFOP_BASE_ULR = "https://ifop.prod-chn.jlrmotor.com/ifop/jlr"
global IF9_BASE_URL
IF9_BASE_URL = "https://ifoa.prod-chn.jlrmotor.com/if9/jlr"

if device_id:
self.device_id = device_id
else:
Expand Down
0