Add utility method for encoding path variables
@@ -227,6 +227,10 @@ class WatsonService(object):
return val._to_dict()
return val
+ @staticmethod
+ def _encode_path_vars(*args):
+ return (requests.utils.quote(x, safe='') for x in args)
+
@staticmethod
def _get_error_message(response):
"""
