lib/linked_in/api/companies.rb
# Create a share for a company that the authenticated user
# administers
#
# Permissions: rw_company_admin
#
# @see https://developer.linkedin.com/docs/company-pages#company_share Create a company share
# @see https://developer.linkedin.com/docs/company-pages#targetting_shares Targeting company shares
#
# @param [String] company_id Company ID
# @macro share_input_fields
# @return [void]
Create a share for a company that the authenticated user
administers


Create a share for a company that the authenticated user administers
def add_company_share(company_id, share)
        path = "/companies/#{company_id}/shares"
        defaults = { visibility: { code: 'anyone' } }
        post(path, MultiJson.dump(defaults.merge(share)), "Content-Type" => "application/json")
      end
def add_company_share ( company_id , share ) path = "/companies/#{company_id}/shares" defaults = { visibility : { code : 'anyone' } } post ( path , MultiJson . dump ( defaults . merge ( share ) ) , "Content-Type" => "application/json" ) end
Create a share for a company that the authenticated user
administers
Create a share for a company that the authenticated user administers
None
void
company_id
<not_specific>
share
<not_specific>
<not_specific>
company_id Company ID
company_id Company ID
see
developer.linkedin.com/docs/company-pages#company_share Create a company share
developer . linkedin . com / docs / company - pages#company_share Create a company share
see
developer.linkedin.com/docs/company-pages#targetting_shares Targeting company shares
developer . linkedin . com / docs / company - pages#targetting_shares Targeting company shares
macro
None