Sha256: 08918463a2cbd871f6c6288c28230776024181907d3b94bc338303f613853c9f

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

module Yammer
  module Api
    module Subscription

      # @see https://developer.yammer.com/
      # @api_path /api/v1/subscriptions/
      # @rate_limited Yes
      # @authentication Requires user context
      # @raise  [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid.
      # @return [Yammer::ApiResponse]
      # @param [Integer] id
      # @param [String]  type
      def create_subscription(type, id)
        post('/api/v1/subscriptions', :target_id => id, :target_type => type)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yammer-client-0.1.8 lib/yammer/api/subscription.rb
yammer-client-0.1.7 lib/yammer/api/subscription.rb
yammer-client-0.1.6 lib/yammer/api/subscription.rb