Update 3.1. sharee JSON defaults

This commit is contained in:
Rainer Gümpelein 2022-01-28 11:34:44 +00:00
parent f6b7718e56
commit f5204c0945

View file

@ -28,7 +28,7 @@ keep in mind, integers will also be delivered as characters.
Example
**request** authorization
```
https://shareeapp-primary.example.tld/APIjsonserver?request=authorization&merchant_id=your-merchant-id&user_id=mail@example.tld&user_pw=example-pw&hw_id=unique-device-id
https://shareeapp-primary.example.tld/APIjsonserver?request=authorization&merchant_id=your-merchant-id&user_id=mail@example.tld&user_pw=example-pw&hw_id=unique-device-id&lang=DE
```
**response** on success
```
@ -44,8 +44,9 @@ https://shareeapp-primary.example.tld/APIjsonserver?request=authorization&mercha
"impress_html" : "site/impress.html",
"privacy_html" : "site/privacy.html",
"agb_checked" : "1",
"copri_version" : "4.1.9.6",
"user_id" : "ragu@gnu-systems.de",
"copri_version" : "4.1.10.2",
"user_id" : "mail@example.tld",
"lang" : "DE",
"init_map" : {
"center" : {
"longitude" : "7.825490",
@ -53,16 +54,16 @@ https://shareeapp-primary.example.tld/APIjsonserver?request=authorization&mercha
},
"radius" : "2.9"
},
"uri_primary" : "https://shareeapp-primary.copri.eu",
"uri_primary" : "https://shareeapp-primary.copri-bike.de",
"authcookie" : "1842966_9580e08d7a627f80ab12ff8f65f1f598_87fab741bb98",
"clearing_cache" : "0",
"response" : "authorization",
"response_text" : "Herzlich willkommen im Fahrradmietsystem",
"response_text" : "Welcome to the bike rental system",
"response_state" : "OK, nothing todo",
"last_used_operator" : {
"operator_phone" : "+49 761 453xxxxx7",
"operator_color" : "#009699",
"operator_name" : "sharee.bike | TeilRad GmbH",
"operator_name" : "Your rental name",
"operator_email" : "hotline@example.tld",
"operator_hours" : "Bürozeiten: Montag, Mittwoch, Freitag 9-12 Uhr"
}
@ -77,14 +78,14 @@ https://shareeapp-primary.example.tld/APIjsonserver?request=authorization&mercha
"authcookie" : "",
"clearing_cache" : "0",
"agb_checked" : "0",
"response_text" : "Entschuldigung, die Anmeldung schlug fehl",
"response_text" : "Sorry, the login failed",
"copri_version" : "4.1.10.2",
"user_id" : "",
"agb_html" : "site/agb.html",
"response" : "authorization",
"user_group" : [],
"impress_html" : "site/impress.html",
"response_state" : "Failure: cannot generate authcookie",
"response_state" : "Failure, login failed",
"uri_primary" : "https://shareeapp-primary.copri-bike.de",
"tariff_info_html" : "site/tariff_info.html",
"lang" : "DE",