Module: Shikimori::API::V1::Ignores Deprecated
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/ignores.rb
Overview
Deprecated.
Use Shikimori::API::V2::UserIgnore instead
Methods for the Ignores API
Instance Method Summary collapse
- #create_ignore(user_id, headers: nil, **query) ⇒ Hash deprecated Deprecated.
- #delete_ignore(user_id, headers: nil, **query) ⇒ Boolean deprecated Deprecated.
Instance Method Details
#create_ignore(user_id, headers: nil, **query) ⇒ Hash
Deprecated.
Add user to ignore by user id. Requires ‘ignores` oauth scope
31 32 33 34 35 |
# File 'lib/shikimori/api/v1/ignores.rb', line 31 def create_ignore(user_id, headers: nil, **query) rest.post base_url.join('ignores', user_id.to_s).url, {}, headers: headers, query: query true end |
#delete_ignore(user_id, headers: nil, **query) ⇒ Boolean
Deprecated.
Delete a user from ignores by user id. Requires ‘ignores` oauth scope
56 57 58 |
# File 'lib/shikimori/api/v1/ignores.rb', line 56 def delete_ignore(user_id, headers: nil, **query) rest.delete base_url.join('ignores', user_id.to_s).url, headers: headers, query: query end |