

def new(self, name=None, stack='cedar'):
    'Creates a new app.'
    payload = {
        
    }
    if name:
        payload['app[name]'] = name
    if stack:
        payload['app[stack]'] = stack
    r = self._h._http_resource(method='POST', resource=('apps',), data=payload)
    name = json.loads(r.content).get('name')
    return stack._h.apps.get(name)

dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/models.py App.new/VarMisuse@94/125 `self`->`stack`