Sha256: 828b8005108b10d7df14b62317887fe76c3503b2654101493eae63d0ac74bf0f

Contents?: true

Size: 478 Bytes

Versions: 6

Compression:

Stored size: 478 Bytes

Contents

module DataSift
  class ManagedSourceAuth < DataSift::ApiResource

    def add(id, auth, validate = 'true')
      params = {
        id:       id,
        validate: validate
      }
      params.merge!({:auth => auth})
      DataSift.request(:PUT, 'source/auth/add', @config, params)
    end

    def remove(id, auth_ids)
      params = {id: id}
      params.merge!({:auth_ids => auth_ids})
      DataSift.request(:PUT, 'source/auth/remove', @config, params)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datasift-3.1.5 lib/managed_source_auth.rb
datasift-3.1.4 lib/managed_source_auth.rb
datasift-3.1.3 lib/managed_source_auth.rb
datasift-3.1.2 lib/managed_source_auth.rb
datasift-3.1.1 lib/managed_source_auth.rb
datasift-3.1.0 lib/managed_source_auth.rb