Sha256: 878106fc2f9b9e8bed7f27afe007fad939f62c685f6b5c4faf020691f541b44b

Contents?: true

Size: 516 Bytes

Versions: 4

Compression:

Stored size: 516 Bytes

Contents

module Buff
  class Client
    include Core
    include User
    include Profile
    include Update
    include Link
    include Info

    attr_accessor :access_token

    def initialize(access_token)
      @access_token = access_token
      url = "https://api.bufferapp.com/1/"
      @connection = Faraday.new(url: url) do |faraday|
        faraday.request  :url_encoded
        faraday.adapter  Faraday.default_adapter
      end
    end

    def auth_query
      { access_token: @access_token }
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
buff-0.0.6 lib/buff/client.rb
buff-0.0.5 lib/buff/client.rb
buff-0.0.4 lib/buff/client.rb
buff-0.0.3 lib/buff/client.rb