sharee.bike-Wiki/5.4.-tool-request=service_work.md
2022-12-30 17:55:27 +00:00

9.2 KiB

request=service_work

request* returns last service values by bike ORstation prefix+number

Parameter Required Format Comment
authcookie + text unique encrypted key
bike o /+ text bike prefix+number
station o /+ text station prefix+number

response bike OR station prefix+number with work-values by JSON-Objects. JSON-objects are described by the internal-data-key. To be able to process several "txt01" tasks, if there is more than one open task, a counter separated by a _ is added to the internal-data-key.

Parameter Required Format Comment
work_id + text internal data key
work_name + text name of datafield
work_val + text data value
service_id + text internal dataset id
service_type + text hart=1, weich=0
interval + text Service interval in days
time_over + text time_over=1 if service_interval exceeded
mtime + date time ISO 8601 last service timestamp
owner + text service-user by ID
user_name + text service-user by user name

Example REST request read last work values by bike or station prefix+number

https://shareeapp-operator.example.tld/APIjsonserver?request=service_work&bike=FR1541&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890

response

{
   "shareejson" : {
      "bike_info_html" : "site/bike_info.html",
      "agb_html" : "site/agb.html",
      "tariff_info_html" : "site/tariff_info.html",
      "clearing_cache" : "0",
      "impress_html" : "site/impress.html",
      "agb_checked" : "1",
      "uri_primary" : "https://shareeapp-primary.example.tld",
      "response" : "service_work",
      "copri_version" : "4.0.1.3",
      "lang" : "DE",
      "user_group" : [
               "FR300001",
               "FR300029"
            ],
        "user_tour" : [
               "FR1",
               "FR2"
            ],
     "uri_operator" : "https://shareeapp-operator.example.tld",
     "service_template" : "401",
      "privacy_html" : "site/privacy.html",
      "authcookie" : "6103_f782a208d9399291ba8d086b5dcc2509_34567890",
      "new_authcoo" : "0",
      "user_id" : "javaminister@example.tld",
      "debuglevel" : "1",
      "response_state" : "OK: nothing todo",
      "FR1541" : {
        "txt01" : {
            "time_over" : "0",
            "work_val" : "Achtung, Fahrradschloss Ladung unter 22%",
            "service_id" : "41509",
            "interval" : "0",
            "work_name" : "Aufgaben",
            "service_type" : "0",
            "mtime" : "2022-10-28 15:33:16.817532+02",
            "owner" : "188",
            "user_name" : "sys API",
            "work_id" : "txt01"
         },
         "txt01_2" : {
            "work_name" : "Aufgaben",
            "interval" : "0",
            "work_val" : "Schutzblech fixieren",
            "time_over" : "0",
            "service_id" : "41512",
            "user_name" : "Christian Fischer",
            "work_id" : "txt01",
            "mtime" : "2022-11-28 20:14:42.912067+01",
            "service_type" : "0",
            "owner" : "21254"
         },
         "int09" : {
            "work_name" : "Reifenluftdruck",
            "service_id" : "0",
            "interval" : "30",
            "owner" : "0",
            "time_over" : "0",
            "service_type" : "1",
            "user_name" : "",
            "mtime" : "",
            "work_id" : "int09",
            "work_val" : "1"
         },
         "txt01" : {
            "user_name" : "",
            "mtime" : "",
            "work_id" : "txt01",
            "work_name" : "Aufgaben",
            "interval" : "0",
            "service_id" : "0",
            "owner" : "0",
            "service_type" : "0",
            "time_over" : "0"
         },
         "int06" : {
            "service_id" : "0",
            "interval" : "10",
            "owner" : "0",
            "service_type" : "1",
            "time_over" : "0",
            "work_name" : "Klingel",
            "work_id" : "int06",
            "work_val" : "1",
            "user_name" : "",
            "mtime" : ""
         },
         "int16" : {
            "work_val" : "1",
            "work_id" : "int16",
            "mtime" : "",
            "user_name" : "",
            "service_type" : "1",
            "time_over" : "0",
            "owner" : "0",
            "interval" : "8",
            "service_id" : "0",
            "work_name" : "Probefahrt"
         },
         "int05" : {
            "work_name" : "Staender",
            "interval" : "10",
            "service_id" : "0",
            "time_over" : "0",
            "service_type" : "1",
            "owner" : "0",
            "mtime" : "",
            "user_name" : "",
            "work_id" : "int05",
            "work_val" : "1"
         },
         "int10" : {
            "work_name" : "Speichenspannung",
            "owner" : "0",
            "service_type" : "1",
            "time_over" : "0",
            "service_id" : "0",
            "interval" : "30",
            "user_name" : "",
            "mtime" : "",
            "work_val" : "1",
            "work_id" : "int10"
         },
         "int08" : {
            "owner" : "0",
            "service_type" : "1",
            "time_over" : "0",
            "service_id" : "0",
            "interval" : "10",
            "work_name" : "Schnellspanner Sattel",
            "work_val" : "1",
            "work_id" : "int08",
            "user_name" : "",
            "mtime" : ""
         },
         "int14" : {
            "interval" : "",
            "service_id" : "0",
            "service_type" : "0",
            "time_over" : "0",
            "owner" : "0",
            "work_name" : "Inspektion in der Werkstatt",
            "work_id" : "int14",
            "work_val" : "1",
            "mtime" : "",
            "user_name" : ""
         },
         "int11" : {
            "work_name" : "Steuersatz",
            "owner" : "0",
            "time_over" : "0",
            "service_type" : "1",
            "service_id" : "0",
            "interval" : "30",
            "user_name" : "",
            "mtime" : "",
            "work_val" : "1",
            "work_id" : "int11"
         },
         "int01" : {
            "work_name" : "Reifen-Bremse-Lampe",
            "service_id" : "41381",
            "interval" : "5",
            "time_over" : "0",
            "service_type" : "2",
            "owner" : "6103",
            "mtime" : "2021-04-15 12:47:46.939586+02",
            "user_name" : "Rainer Gümpelein",
            "work_id" : "int01",
            "work_val" : "1"
         },
         "int07" : {
            "work_name" : "Schloss",
            "owner" : "0",
            "service_type" : "1",
            "time_over" : "0",
            "service_id" : "0",
            "interval" : "10",
            "user_name" : "",
            "mtime" : "",
            "work_val" : "1",
            "work_id" : "int07"
         },
         "int13" : {
            "owner" : "0",
            "time_over" : "0",
            "service_type" : "1",
            "service_id" : "0",
            "interval" : "30",
            "work_name" : "Achsschrauben",
            "work_val" : "1",
            "work_id" : "int13",
            "user_name" : "",
            "mtime" : ""
         },
         "int03" : {
            "work_id" : "int03",
            "work_val" : "1",
            "mtime" : "",
            "user_name" : "",
            "interval" : "10",
            "service_id" : "0",
            "time_over" : "0",
            "service_type" : "1",
            "owner" : "0",
            "work_name" : "Licht"
         },
         "int15" : {
            "work_name" : "BC Halterung",
            "owner" : "0",
            "time_over" : "0",
            "service_type" : "1",
            "service_id" : "0",
            "interval" : "10",
            "user_name" : "",
            "mtime" : "",
            "work_val" : "1",
            "work_id" : "int15"
         },
         "int02" : {
            "work_val" : "1",
            "work_id" : "int02",
            "mtime" : "2021-04-15 12:47:46.939586+02",
            "user_name" : "Rainer Gümpelein",
            "service_type" : "1",
            "time_over" : "0",
            "owner" : "6103",
            "service_id" : "41381",
            "interval" : "10",
            "work_name" : "Gepaecktraeger"
         },
         "int12" : {
            "work_name" : "Schutzblech",
            "time_over" : "0",
            "service_type" : "1",
            "owner" : "0",
            "service_id" : "0",
            "interval" : "30",
            "mtime" : "",
            "user_name" : "",
            "work_val" : "1",
            "work_id" : "int12"
         }
      }
   }
}