Skip to content

Commit 4237250

Browse files
authored
Merge pull request #11 from xivapi/remove-lodestone
Remove no longer supported lodestone requests
2 parents f2f462f + d6ec309 commit 4237250

File tree

3 files changed

+1
-96
lines changed

3 files changed

+1
-96
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,7 @@ pip install pyxivapi
3030
* /index/search (e.g. recipe, item, action, pvpaction, mount, e.t.c.)
3131
* /index/id
3232
* /lore/search
33-
* /lodestone
34-
* /lodestone/news
35-
* /lodestone/notices
36-
* /lodestone/maintenance
37-
* /lodestone/updates
38-
* /lodestone/status
3933
* /lodestone/worldstatus
40-
* /lodestone/devblog
41-
* /lodestone/devposts
42-
* /lodestone/deepdungeon
43-
* /lodestone/feasts
4434

4535
## Documentation
4636
<https://xivapi.com/docs/>
@@ -137,9 +127,6 @@ async def fetch_example_results():
137127
language="de"
138128
)
139129

140-
# Get all categories of posts from the Lodestone (cached evert 15 minutes)
141-
lodestone = await client.lodestone_all()
142-
143130
await client.session.close()
144131

145132

pyxivapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__author__ = 'Lethys'
33
__license__ = 'MIT'
44
__copyright__ = 'Copyright 2019 (c) Lethys'
5-
__version__ = '0.3.1'
5+
__version__ = '0.4.0'
66

77
from .client import XIVAPIClient
88
from .exceptions import (

pyxivapi/client.py

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -389,52 +389,6 @@ async def lore_search(self, query, language="en"):
389389
async with self.session.get(url, params=params) as response:
390390
return await self.process_response(response)
391391

392-
@timed
393-
async def lodestone_all(self):
394-
"""|coro|
395-
Request all categories of Lodestone posts. This function is recommended because it returns a cached (every 15 minutes) collection of
396-
information and will return much quicker.
397-
"""
398-
url = f'{self.base_url}/lodestone?private_key={self.api_key}'
399-
async with self.session.get(url) as response:
400-
return await self.process_response(response)
401-
402-
@timed
403-
async def lodestone_news(self):
404-
"""|coro|
405-
Request posts under the topics Lodestone category.
406-
"""
407-
url = f'{self.base_url}/lodestone/news?private_key={self.api_key}'
408-
async with self.session.get(url) as response:
409-
return await self.process_response(response)
410-
411-
@timed
412-
async def lodestone_notices(self):
413-
"""|coro|
414-
Request posts under the notices Lodestone category.
415-
"""
416-
url = f'{self.base_url}/lodestone/notices?private_key={self.api_key}'
417-
async with self.session.get(url) as response:
418-
return await self.process_response(response)
419-
420-
@timed
421-
async def lodestone_maintenance(self):
422-
"""|coro|
423-
Request posts under the maintenance Lodestone category.
424-
"""
425-
url = f'{self.base_url}/lodestone/maintenance?private_key={self.api_key}'
426-
async with self.session.get(url) as response:
427-
return await self.process_response(response)
428-
429-
@timed
430-
async def lodestone_updates(self):
431-
"""|coro|
432-
Request posts under the updates Lodestone category.
433-
"""
434-
url = f'{self.base_url}/lodestone/updates?private_key={self.api_key}'
435-
async with self.session.get(url) as response:
436-
return await self.process_response(response)
437-
438392
@timed
439393
async def lodestone_worldstatus(self):
440394
"""|coro|
@@ -444,42 +398,6 @@ async def lodestone_worldstatus(self):
444398
async with self.session.get(url) as response:
445399
return await self.process_response(response)
446400

447-
@timed
448-
async def lodestone_devblog(self):
449-
"""|coro|
450-
Request posts under the developer blog Lodestone category.
451-
"""
452-
url = f'{self.base_url}/lodestone/devblog?private_key={self.api_key}'
453-
async with self.session.get(url) as response:
454-
return await self.process_response(response)
455-
456-
@timed
457-
async def lodestone_devposts(self):
458-
"""|coro|
459-
Request developer posrs from the official FFXIV forums.
460-
"""
461-
url = f'{self.base_url}/lodestone/devposts?private_key={self.api_key}'
462-
async with self.session.get(url) as response:
463-
return await self.process_response(response)
464-
465-
@timed
466-
async def lodestone_deepdungeon(self):
467-
"""|coro|
468-
Request Deep Dungeon post from the Lodestone.
469-
"""
470-
url = f'{self.base_url}/lodestone/deepdungeon?private_key={self.api_key}'
471-
async with self.session.get(url) as response:
472-
return await self.process_response(response)
473-
474-
@timed
475-
async def lodestone_feasts(self):
476-
"""|coro|
477-
Request Feast post from the Lodestone.
478-
"""
479-
url = f'{self.base_url}/lodestone/feasts?private_key={self.api_key}'
480-
async with self.session.get(url) as response:
481-
return await self.process_response(response)
482-
483401
async def process_response(self, response):
484402
__log__.info(f'{response.status} from {response.url}')
485403

0 commit comments

Comments
 (0)