Module: Shikimori::API::V1::TopicIgnores Deprecated
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/topic_ignores.rb
Overview
Deprecated.
Use Shikimori::API::V2::TopicIgnore instead
Methods for the Topic ignores API
Instance Method Summary collapse
- #create_topic_ignore(topic_id:, user_id:, headers: nil, **query) ⇒ Hash deprecated Deprecated.
- #delete_topic_ignore(id, headers: nil, **query) ⇒ Boolean deprecated Deprecated.
Instance Method Details
#create_topic_ignore(topic_id:, user_id:, headers: nil, **query) ⇒ Hash
Deprecated.
Add user to ignore at topic by user id and topic id. Requires ‘topics` oauth scope
32 33 34 35 36 |
# File 'lib/shikimori/api/v1/topic_ignores.rb', line 32 def create_topic_ignore(topic_id:, user_id:, headers: nil, **query) payload = { topic_ignore: { topic_id: topic_id, user_id: user_id } } rest.post base_url.join('topic_ignores').url, payload, headers: headers, query: query end |
#delete_topic_ignore(id, headers: nil, **query) ⇒ Boolean
Deprecated.
Delete a user from topic ignores by id. Requires ‘ignores` oauth scope
57 58 59 |
# File 'lib/shikimori/api/v1/topic_ignores.rb', line 57 def delete_topic_ignore(id, headers: nil, **query) rest.delete base_url.join('topic_ignores', id.to_s).url, headers: headers, query: query end |