title: Pass string parameter to user input in an api request
body: <p>I am using python to make requests to one of the google apis.</p>
  <p>I was using this code which works.</p>
  <pre><code>from oauth2client.service_account import ServiceAccountCredentials
  import httplib2
  
  SCOPES = [ &quot;https://www.googleapis.com/auth/url-api&quot; ]
  ENDPOINT = &quot;url-endpoint&quot;
  
  JSON_KEY_FILE = &quot;route json&quot;
  
  credentials = ServiceAccountCredentials.from_json_keyfile_name(JSON_KEY_FILE, scopes=SCOPES)
  
  http = credentials.authorize(httplib2.Http())
  
  content = &quot;&quot;&quot;{
    &quot;url&quot;: &quot;domain.com&quot;,
    &quot;type&quot;: &quot;TYPE-NOTIFICATION&quot;
  }&quot;&quot;&quot;
  
  response, content = http.request(ENDPOINT, method=&quot;POST&quot;, body=content)
  print(response)
  </code></pre>
  <p>I am trying to make the parameters that build the variable &quot;content&quot; work as a user input.</p>
  <p>As you can see, right now the &quot;content&quot; variable consists of a string literal. This is causing me problems to transform each of these parameters into an input.</p>
  <p>How can I solve this? My goal is that a user can enter a value for url. The same with the &quot;type&quot; parameter.</p>
  <p>I have tried removing the string and adding an input for the values, but this does not work.</p>