From 3bf1e99f9f2d471f61b2a1f391f74c477283a330 Mon Sep 17 00:00:00 2001 From: Maria Bermudez Date: Wed, 10 Jan 2018 23:28:15 -0800 Subject: [PATCH] Update Create an Inbound Route description --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cfc608a..e3df46c 100644 --- a/README.md +++ b/README.md @@ -491,7 +491,7 @@ Flowroute SDK version 3 for Python allows you to make HTTP requests to the `rout #### create\_an\_inbound\_route(route\_body) -The method accepts the route object in JSON format as a parameter which you can learn more about in the [API reference](https://developer.flowroute.com/api/numbers/v2.0/create-an-inbound-route/). In the following example, we define a function to generate a six-character random string for our subdomain which we later concatenate with our example domain and assign as our `host` value. +The method accepts the route object in JSON format as a parameter which you can learn more about in the [API reference](https://developer.flowroute.com/api/numbers/v2.0/create-an-inbound-route/). In the following example, we define a function to generate a six-character random string for our subdomain which we later concatenate with our example domain and assign as our `host` value. We use the same function to generate a unique `alias`. ##### Example Request ```python @@ -500,8 +500,8 @@ print ("---Create an Inbound Route") def id_generator(size=6, chars=string.ascii_lowercase + string.digits): return ''.join(random.choice(chars) for _ in range(size)) new_route = id_generator() + '.sonsofodin.com' -alias = "new route" -for i in range(10): alias += str(i) +alias = id_generator() +for i in range(6): alias += str(i) print new_route request_body = '{ \ "data": { \