Ejemplo n.º 1
0
def make_client():
    """Create a client object"""
    key, secret = apikey.key, apikey.secret
    client = GoodreadsClient(key, secret)
    client.authenticate(apikey.oauth_access_token,
                        apikey.oauth_access_token_secret)
    return client
Ejemplo n.º 2
0
def make_client():
    """Create a client object"""
    key, secret = apikey.key, apikey.secret
    client = GoodreadsClient(key, secret)
    client.authenticate(apikey.oauth_access_token,
                        apikey.oauth_access_token_secret)
    return client
Ejemplo n.º 3
0
 def test_many_authors(self):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     book = client.book('18774683')
     assert len(book.authors) == 2
     assert isinstance(book.authors[0], GoodreadsAuthor)
Ejemplo n.º 4
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.book = client.book('11870085')
Ejemplo n.º 5
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.book = client.book('11870085')
Ejemplo n.º 6
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.author = client.author('64941')
Ejemplo n.º 7
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.owned_book = client.owned_book('43018920')
Ejemplo n.º 8
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.group = client.group(1)
Ejemplo n.º 9
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.events = client.list_events(55408)
     cls.event = cls.events[0]
Ejemplo n.º 10
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.comments = client.list_comments('user', '1')
     cls.comment = cls.comments[0]
Ejemplo n.º 11
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.author = client.author('64941')
Ejemplo n.º 12
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.comments = client.list_comments('user', '1')
Ejemplo n.º 13
0
 def setup_class(cls):
     client = GoodreadsClient(apikey.key, apikey.secret)
     client.authenticate(apikey.oauth_access_token,
                         apikey.oauth_access_token_secret)
     cls.group = client.group(1)