def update_reminder(self, reminder):
		'''Creates a reminder with the provided attributes.
		Args:
			reminder		updated reminder of StreakReminder type
			return			(status code, reminder dict)
		'''
		uri = '/'.join([self.api_uri,
						self.reminders_suffix,
						])
		#req sanity check
		payload = None
		if  type(reminder) is not StreakReminder:
			return requests.codes.bad_request, None

		payload = reminder.to_dict(rw = True)
	
		try:
			uri = '/'.join([uri, reminder.attributes['key']])
		except KeyError:
			return requests.codes.bad_request, None
	
		code, data = self._req('post', uri , json.dumps(payload))
		
		return code, data
def update_reminder ( self , reminder ) : uri = '/' . join ( [ self . api_uri , self . reminders_suffix , ] ) payload = None if type ( reminder ) is not StreakReminder : return requests . codes . bad_request , None payload = reminder . to_dict ( rw = True ) try : uri = '/' . join ( [ uri , reminder . attributes [ 'key' ] ] ) except KeyError : return requests . codes . bad_request , None code , data = self . _req ( 'post' , uri , json . dumps ( payload ) ) return code , data
Creates a reminder with the provided attributes.
		Args:
			reminder		updated reminder of StreakReminder type
			return			(status code, reminder dict)