def login(username, password)
      # POST https://api.vineapp.com/users/authenticate
      result = post('/users/authenticate', {}, { username: username, password: password })
      self.user_id = result['data']['userId']
      self.key     = result['data']['key']
      result
    end
def login(username, password)
      # POST https://api.vineapp.com/users/authenticate
      result = post('/users/authenticate', {}, { username: username, password: password })
      self.user_id = result['data']['userId']
      self.key     = result['data']['key']
      result
    end
Login