Sha256: d931a87a5e8a4b72a5b6190f8e38c01e40f98c0c3d0a41ceb04aad7afdbd1e3a
Contents?: true
Size: 849 Bytes
Versions: 5
Compression:
Stored size: 849 Bytes
Contents
module Yammer module Api module Invitation # @see https://developer.yammer.com/restapi/#rest-invitations # @api_path /api/v1/invitations # @rate_limited Yes # @authentication Requires user context # @raise [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid. # @return [Yammer::ApiResponse] # @param [String, Array] email or list of email addresses to send invitations to # @example Fetch data for the thread # # Yammer.invite(%{ bob@yammer.com alice@yammer.com }) # # Yammer.invite('bob@yammer.com, alice@yammer.com') def invite(email) email = email.strip if email.is_a?(String) email = email.join(',') if email.is_a?(Array) post('/api/v1/invitations', :email => email) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems