示例#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
示例#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
示例#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)
示例#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')
示例#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')
示例#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')
示例#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')
示例#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)
示例#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]
示例#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]
示例#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')
示例#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')
示例#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)