Module: Shikimori::API::V1::Studios

Included in:
Shikimori::API::V1
Defined in:
lib/shikimori/api/v1/studios.rb

Overview

Methods for the Studios API

Instance Method Summary collapse

Instance Method Details

#studios(headers: nil, **query) ⇒ Array<Hash>

Get list of studios

Examples:

Get list of studios

client = Shikimori::API::Client.new(
  app_name: 'Api Test',
  aceess_token: '****',
  refresh_token: '****'
)
client.v1.studios #=> [{ id: 1, ... }, ...]

Parameters:

  • headers (Hash) (defaults to: nil)

    Request headers

  • query (Hash)

    Query string parameters for request

Returns:

  • (Array<Hash>)

    Array of hashes representing studios

See Also:



25
26
27
# File 'lib/shikimori/api/v1/studios.rb', line 25

def studios(headers: nil, **query)
  rest.get base_url.join('studios').url, headers: headers, query: query
end