How can i append two different strings variable in a url. But this is not accepting
def get_customer_action_by_target_group(self):
payload = {"TargetGroupID": "%s" % self.TargetGroupID,
"Date":"%s" % self.date,
}
if not self.TargetGroupID or not self.date:
get_target_group_id = int(raw_input("Please provide the target Group id:"))
get_date = (raw_input("Please provide the date as required:"))
self.TargetGroupID = get_target_group_id
self.date = get_date
response = self.send_request(self.get_customer_action_by_target_group_url % self.TargetGroupID %
self.date,
json.dumps(payload),
"GET")
print response, response.text, response.reason
return response
get_customer_action_by_target_group_urlis the method itself, it doesn't make sense to try and treat it as a string.