Module: Shikimori::API::V1::Publishers

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

Overview

Methods for the Publishers API

Instance Method Summary collapse

Instance Method Details

#publishers(headers: nil, **query) ⇒ Hash

Get list of publishers

Examples:

Get list of publishers

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

Parameters:

  • headers (Hash) (defaults to: nil)

    Request headers

  • query (Hash)

    Query string parameters for request

Returns:

  • (Hash)

    Array of hashes representing publishers

See Also:



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

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