Sha256: 73bfb2612c9caff036e0c95e2dbb693ef0801411a304deb9d3f3ec764a7bac96

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true
require_relative "./list"

module Bitly
  module API
    module BSD
      class List < Bitly::API::List ; end

      ##
      # Fetch Branded Short Domains (BSDs).
      # [`GET /v4/bsds`](https://dev.bitly.com/v4/#operation/getBSDs)
      #
      # @example
      #     bsds = Bitly::API::BSD.list(client: client)
      #
      # @return [Array<String>]
      def self.list(client:)
        response = client.request(path: "/bsds")
        bsds = response.body["bsds"]
        List.new(items: bsds, response: response)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bitly-2.1.0 lib/bitly/api/bsd.rb
bitly-2.0.2 lib/bitly/api/bsd.rb
bitly-2.0.1 lib/bitly/api/bsd.rb
bitly-2.0.0 lib/bitly/api/bsd.rb
bitly-2.0.0.beta.2 lib/bitly/api/bsd.rb
bitly-2.0.0.beta.1 lib/bitly/api/bsd.rb