class Notification(object):
	def __init__(self, rachio):
		self.rachio = rachio

	def getWebhookEventType(self):
		url = '%snotification/webhook_event_type' % self.rachio.server

		(resp, content) = self.rachio.h.request(url, 'GET', headers=self.rachio.headers)
		return content

	def getDeviceWebhook(self, id):
		url = '%snotification/%s/webhook' % (self.rachio.server, id)

		(resp, content) = self.rachio.h.request(url, 'GET', headers=self.rachio.headers)
		return content

	def postWebhook(self, webhook):
		url = '%snotification/webhook' % self.rachio.server
		body = {webhook}

		(resp, content) = self.rachio.h.request(url, 'POST', body=body, headers=self.rachio.headers)
		return content

	def putWebhook(self, webhook):
		url = '%snotification/webhook' % self.rachio.server
		body = {webhook}

		(resp, content) = self.rachio.h.request(url, 'PUT', body=body, headers=self.rachio.headers)
		return content

	def deleteWebhook(self, id):
		url = '%snotification/webhook/%s' % (self.rachio.server, id)

		(resp, content) = self.rachio.h.request(url, 'DELETE', headers=self.rachio.headers)
		return content

	def get(self, id):
		url = '%snotification/webhook/%s' % (self.rachio.server, id)

		(resp, content) = self.rachio.h.request(url, 'GET', headers=self.rachio.headers)
		return content

@@ -1,8 +1,21 @@
+import json%0A%0A
 class No
@@ -272,32 +272,39 @@
 rs)%0A%09%09return
+ (resp,
  content
 %0A%0A%09def getDe
@@ -283,32 +283,33 @@
 n (resp, content
+)
 %0A%0A%09def getDevice
@@ -478,32 +478,39 @@
 rs)%0A%09%09return
+ (resp,
  content
 %0A%0A%09def postW
@@ -489,32 +489,33 @@
 n (resp, content
+)
 %0A%0A%09def postWebho
@@ -581,36 +581,39 @@
 rachio.server%0A%09%09
-body
+payload
  = %7Bwebhook%7D%0A%0A%09%09
@@ -662,36 +662,51 @@
 l, 'POST', body=
-body
+json.dumps(payload)
 , headers=self.r
@@ -724,32 +724,39 @@
 rs)%0A%09%09return
+ (resp,
  content
 %0A%0A%09def putWe
@@ -739,24 +739,25 @@
 esp, content
+)
 %0A%0A%09def putWe
@@ -834,20 +834,23 @@
 erver%0A%09%09
-body
+payload
  = %7Bwebh
@@ -914,20 +914,35 @@
 ', body=
-body
+json.dumps(payload)
 , header
@@ -968,32 +968,39 @@
 rs)%0A%09%09return
+ (resp,
  content
 %0A%0A%09def delet
@@ -983,24 +983,25 @@
 esp, content
+)
 %0A%0A%09def delet
@@ -1178,24 +1178,31 @@
 %09%09return
+ (resp,
  content
 %0A%0A%09def g
@@ -1193,16 +1193,17 @@
  content
+)
 %0A%0A%09def g
@@ -1371,17 +1371,24 @@
 %09%09return
+ (resp,
  content
 %0A
@@ -1386,9 +1386,10 @@
  content
+)
 %0A

Update notification.py