title: How can i make an API wrapper for a HTTP service that uses json?
body: <p>I want to make a HTTP wrapper for twitch.tv in python. How would I do this? I know how to use HTTP GET and that's about it. I would like it to work like this:</p>
  
  <pre><code>import twichtvwrapper
  twich = twichtvwrapper(useragent, username, password).
  channel = twich.channel(channelname)
  </code></pre>
  
  <p>then all the json properties would go in here like:</p>
  
  <pre><code> print(channel.game) #this would say the last played game
   print(channel.displayname) #this would print the display name of the channel
   print(cahnnel.link.chat) #this will return the chat link
  </code></pre>
  
  <p>etc.</p>
  
  <p>How would I go about making this wrapper?</p>