Skip to content

Commit

Permalink
各エンドポイントのdocstringのreferenceのURLを新しいものに修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kk6 committed Mar 12, 2017
1 parent 8ead8b8 commit 0f9a774
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions annict/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def build_parameters(self, kwargs):

class WorksService(ServiceBase):
"""
:reference: https://annict.wikihub.io/wiki/api/works
:reference: https://docs.annict.com/ja/api/v1/works.html
"""
path = 'works'
allowed_params = ['fields', 'filter_ids', 'filter_season', 'filter_title',
Expand All @@ -37,7 +37,7 @@ def get(self, **kwargs):

class EpisodesService(ServiceBase):
"""
:reference: https://annict.wikihub.io/wiki/api/episodes
:reference: https://docs.annict.com/ja/api/v1/episodes.html
"""
path = 'episodes'
allowed_params = ['fields', 'filter_ids', 'filter_work_id', 'page', 'per_page',
Expand All @@ -52,7 +52,7 @@ def get(self, **kwargs):

class RecordsService(ServiceBase):
"""
:reference: https://annict.wikihub.io/wiki/api/records
:reference: https://docs.annict.com/ja/api/v1/records.html
"""
path = 'records'
allowed_params = ['fields', 'filter_ids', 'filter_episode_id', 'page', 'per_page',
Expand All @@ -67,7 +67,7 @@ def get(self, **kwargs):

class MeStatusesService(ServiceBase):
"""
:reference: https://annict.wikihub.io/wiki/api/me-statuses
:reference: https://docs.annict.com/ja/api/v1/me-statuses.html
"""
path = 'me/statuses'

Expand All @@ -77,7 +77,7 @@ def create(self, work_id, kind):

class MeRecordsService(ServiceBase):
"""
:reference: https://annict.wikihub.io/wiki/api/me-records
:reference: https://docs.annict.com/ja/api/v1/me-records.html
"""
path = 'me/records'
allowed_params = ['comment', 'rating', 'share_twitter', 'share_facebook']
Expand All @@ -102,7 +102,7 @@ def delete(self, record_id, **kwargs):

class MeWorksService(ServiceBase):
"""
:reference: https://annict.wikihub.io/wiki/api/me-works
:reference: https://docs.annict.com/ja/api/v1/me-works.html
"""
path = 'me/works'
allowed_params = ['fields', 'filter_ids', 'filter_season', 'filter_title', 'filter_status',
Expand All @@ -117,7 +117,7 @@ def get(self, **kwargs):

class MeProgramsService(ServiceBase):
"""
:reference: https://annict.wikihub.io/wiki/api/me-programs
:reference: https://docs.annict.com/ja/api/v1/me-programs.html
"""
path = 'me/programs'
allowed_params = ['fields', 'filter_ids', 'filter_channel_ids', 'filter_work_ids',
Expand All @@ -132,7 +132,9 @@ def get(self, **kwargs):


class MeService(ServiceBase):

"""
:reference: https://docs.annict.com/ja/api/v1/me.html
"""
path = 'me'
allowed_params = ['fields']
payload_type = 'user'
Expand Down

0 comments on commit 0f9a774

Please sign in to comment.