title: How to get Onvif Media Profile Token on Python
body: <p>I've been trying to request a Onvif Snapshot but the GetSnapshotUri() function takes a "Profile Token" as argument.</p>
  
  <p>I've called the function GetProfiles() and it's result is a list of profiles and one of them has <code>a _token = "MediaProfile000"</code>.</p>
  
  <p>If I just type this token in the GetSnapshotUri() function, it say's:</p>
  
  <pre><code>onvif.exceptions.ONVIFError: Unknown error: Method instance argument after ** must be a mapping, not str
  </code></pre>
  
  <p>So I tried this way:</p>
  
  <pre><code>profilesList = media.GetProfiles()
  firstProfile = profilesList[0]
  mediaProfileToken = firstProfile._token
  media.GetSnapshotUri(mediaProfileToken)
  </code></pre>
  
  <p>But guess what?</p>
  
  <pre><code>onvif.exceptions.ONVIFError: Unknown error: Method instance argument after ** must be a mapping, not Text
  </code></pre>
  
  <p>Please Help</p>