Class: Buffer::Api::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/buffer/api/info.rb

Overview

Returns api instance to get auxilary information about Buffer useful when creating your app.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Info

Returns a new instance of Info.



9
10
11
# File 'lib/buffer/api/info.rb', line 9

def initialize(client)
  @client = client
end

Instance Method Details

#show(options = {}) ⇒ Object

Returns an object with the current configuration that Buffer is using, including supported services, their icons and the varying limits of character and schedules. ‘/info/configuration’ GET



16
17
18
19
20
21
22
# File 'lib/buffer/api/info.rb', line 16

def show(options = {})
  body = options.has_key?(:query) ? options[:query] : {}

  response = @client.get "/info/configuration", body, options

  return response
end