title: Amazon Alexa Proactive Events request in Python flask-ask
body: <p>I am trying to make a request to the <a href="https://developer.amazon.com/de/docs/smapi/proactive-events-api.html?&amp;sc_category=Owned&amp;sc_channel=WB&amp;sc_campaign=proactiveevents&amp;sc_publisher=launch&amp;sc_content=Content&amp;sc_funnel=Discover&amp;sc_country=WW&amp;sc_medium=Owned_WB_proactiveevents_launch_Content_Discover_WW_unknown&amp;sc_segment=unknown#call-proactive" rel="nofollow noreferrer">Proactive Events API</a> by using the requests module of Python.</p>
  
  <p>However I always receive a response that the scope is invalid.
  Can anyone help? What am I doing wrong? My code looks like this:</p>
  
  <pre><code>@ask.launch
  def launch():
      content_type = "application/x-www-form-urlencoded;charset=utf-8"
      client_id = "amzn1.application-oa2-client.6a48XXXXXXX408"
      client_secret = "592XXXXxxxxxxx6"
      scope = "alexa::proactive_events"
      grant_type = "client_credentials"
  
      data = {"grant_type": grant_type, "client_id": client_id, "client_secret": client_secret, "scope": scope}
      r = requests.post("https://api.amazon.com/auth/O2/token", data=data, headers={"content-type": content_type})
  
      speech = render_template("welcome")
      reprompt = render_template("welcome_reprompt")
      return question(speech).reprompt(reprompt)
  </code></pre>
  
  <p>That is the response I get:</p>
  
  <pre><code>{'error_description': 'The request has an invalid parameter : scope', 'error': 'invalid_scope'}
  </code></pre>