module Bitly::API::BSD

Public Class Methods

list(client:) click to toggle source

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

@example

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

@return [Array<String>]

# 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