Compare commits
22 Commits
develop
...
8b3cf944dd
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b3cf944dd | |||
| ef926fd983 | |||
| 23d8fa5624 | |||
| 1c541fa4d6 | |||
| ec399c8b0a | |||
| 736182b200 | |||
| 39b2c3c776 | |||
| 733ef83127 | |||
| b53fdc07f8 | |||
| eb260b7a7e | |||
| 6db3afcd28 | |||
| 00c66320b5 | |||
| 5823012259 | |||
| 7dec38109a | |||
| b6ede1af3b | |||
| e38a402d44 | |||
| e59cd77908 | |||
| 6ab8749f11 | |||
| 13df6822c8 | |||
| b78c503b31 | |||
| e69b2dfab9 | |||
| f168ad9e47 |
@@ -22,8 +22,7 @@ from georideapilib.exception import (
|
|||||||
UnauthorizedException
|
UnauthorizedException
|
||||||
)
|
)
|
||||||
|
|
||||||
GEORIDE_API_HOST = "https://api.georide.com"
|
GEORIDE_API_HOST = "https://api.georide.fr"
|
||||||
GEORIDE_SOCKET_HOST = "https://socket.georide.com"
|
|
||||||
GEORIDE_API_ENDPOINT_LOGIN = "/user/login"
|
GEORIDE_API_ENDPOINT_LOGIN = "/user/login"
|
||||||
GEORIDE_API_ENDPOINT_NEW_TOKEN = "/user/new-token"
|
GEORIDE_API_ENDPOINT_NEW_TOKEN = "/user/new-token"
|
||||||
GEORIDE_API_ENDPOINT_LOGOUT = "/user/logout"
|
GEORIDE_API_ENDPOINT_LOGOUT = "/user/logout"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import socketio
|
import socketio
|
||||||
|
|
||||||
from georideapilib.api import GEORIDE_SOCKET_HOST
|
from georideapilib.api import GEORIDE_API_HOST
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ class GeoRideSocket():
|
|||||||
def connect(self, auth_token):
|
def connect(self, auth_token):
|
||||||
""" connect to the georide socket"""
|
""" connect to the georide socket"""
|
||||||
if self._initialised is not False:
|
if self._initialised is not False:
|
||||||
sio.connect(GEORIDE_SOCKET_HOST, headers={'token': auth_token})
|
sio.connect(GEORIDE_API_HOST, headers={'token': auth_token})
|
||||||
sio.wait()
|
sio.wait()
|
||||||
else:
|
else:
|
||||||
_LOGGER.error("Please call init() before")
|
_LOGGER.error("Please call init() before")
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -19,13 +19,13 @@ CURRENT_DIR = os.path.dirname(__file__)
|
|||||||
setup(
|
setup(
|
||||||
name='georideapilib',
|
name='georideapilib',
|
||||||
packages=['georideapilib', 'georideapilib.objects'], # this must be the same as the name above
|
packages=['georideapilib', 'georideapilib.objects'], # this must be the same as the name above
|
||||||
version='1.0.0',
|
version='0.9.6',
|
||||||
description='Lib to control GeoRide tracker devices with theire rest api',
|
description='Lib to control GeoRide tracker devices with theire rest api',
|
||||||
author='Matthieu DUVAL',
|
author='Matthieu DUVAL',
|
||||||
author_email='georideapilib@duval-dev.fr',
|
author_email='georideapilib@duval-dev.fr',
|
||||||
# use the URL to the github repo
|
# use the URL to the github repo
|
||||||
url='https://github.com/hacf/georide-api',
|
url='https://github.com/hacf/georide-api',
|
||||||
download_url='https://codeload.github.com/hacf/georide-api/tar.gz/1.0.0',
|
download_url='https://codeload.github.com/hacf/georide-api/tar.gz/0.9.3',
|
||||||
keywords=['rest', 'georide', 'api', 'grutier', 'GeoRide'], # arbitrary keywords
|
keywords=['rest', 'georide', 'api', 'grutier', 'GeoRide'], # arbitrary keywords
|
||||||
classifiers=[],
|
classifiers=[],
|
||||||
install_requires=["python-socketio[client]==4.6.1"],
|
install_requires=["python-socketio[client]==4.6.1"],
|
||||||
|
|||||||
Reference in New Issue
Block a user