Module: Shikimori::API::V1::UserImages
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/user_images.rb
Overview
Methods for the User images API
Instance Method Summary collapse
-
#create_user_image(image, linked_type: nil, headers: nil, **query) ⇒ Hash
Create User image.
Instance Method Details
#create_user_image(image, linked_type: nil, headers: nil, **query) ⇒ Hash
Create User image. Requires ‘comments` oauth scope
28 29 30 31 32 |
# File 'lib/shikimori/api/v1/user_images.rb', line 28 def create_user_image(image, linked_type: nil, headers: nil, **query) rest.post base_url.join('user_images').url, { 'image' => image, 'linked_type' => linked_type }.compact, headers: headers, query: query, as_form: true end |