Class: Platforms::Yammer::Api::Invitations

Inherits:
Base
  • Object
show all
Defined in:
lib/platforms/yammer/api/invitations.rb

Overview

Invite people to a Yammer network

Author:

  • Benjamin Elias

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Platforms::Yammer::Api::Base

Instance Method Details

#post(body = nil, headers = {}) ⇒ Faraday::Response

Post invitations have group_id (optional).

Parameters:

  • body (#to_s) (defaults to: nil)

    Body of the request. Typically has email and may

  • headers (Hash) (defaults to: {})

    Additional headers to send with the request

Returns:

  • (Faraday::Response)

    the API response

See Also:

Since:

  • 0.1.0



15
16
17
# File 'lib/platforms/yammer/api/invitations.rb', line 15

def post body=nil, headers={}
  @connection.post "invitations.json", body, headers
end