Example #1
0
def createToken(reactor, username, password, note, url, scopes):
    from txgithub import token
    d = token.createToken(username, password,
            note=note, note_url=url,
            scopes = scopes
            )
    d.addCallback(print)
    return d
Example #2
0
 def createToken(self, baseURL=None):
     """
     A wrapper around L{createToken} that ensures the fixture data
     and fake is passed in.
     """
     kwargs = {"_getPage": self.fake_getPage}
     if baseURL:
         kwargs["baseURL"] = baseURL
     return token.createToken(self.user,
                              self.password,
                              self.note,
                              self.note_url,
                              self.scopes,
                              **kwargs)
Example #3
0
def createToken(reactor, username, password, note, url, scopes):
    d = token.createToken(username, password, note=note, note_url=url, scopes=scopes)
    d.addCallback(_print)
    return d