accidently deleted settings example, also fixed a missing folder in api URL.

Keep in mind, this Fleet-up integration has no errorhandling or logging.
This commit is contained in:
johanko
2016-04-07 08:52:54 +00:00
parent 1770fc5548
commit 6ae79ff82e
2 changed files with 530 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ class FleetUpManager():
@staticmethod
def get_fleetup_doctrine(doctrinenumber):
url = "http://api.fleet-up.com/Api.svc/" + str(appkey) + "/" + str(userid) + "/" + str(apiid) + "/%s" % doctrinenumber
url = "http://api.fleet-up.com/Api.svc/" + str(appkey) + "/" + str(userid) + "/" + str(apiid) + "/DoctrineFittings/%s" % doctrinenumber
jsondata = requests.get(url).content
fdoctrine=json.loads(jsondata.decode())