Method: Bitly::API::BSD.list

Defined in:
lib/bitly/api/bsd.rb

.list(client:) ⇒ Array<String>

Fetch Branded Short Domains (BSDs). [‘GET /v4/bsds`](dev.bitly.com/v4/#operation/getBSDs)

Examples:

bsds = Bitly::API::BSD.list(client: client)

Returns:

  • (Array<String>)


17
18
19
20
21
# File 'lib/bitly/api/bsd.rb', line 17

def self.list(client:)
  response = client.request(path: "/bsds")
  bsds = response.body["bsds"]
  List.new(items: bsds, response: response)
end