class LinkedIn::Configuration

Configuration for the LinkedIn gem.

LinkedIn.configure do |config|
  config.client_id     = ENV["LINKEDIN_CLIENT_ID"]
  config.client_secret = ENV["LINKEDIN_CLIENT_SECRET"]
end

The default endpoints for LinkedIn are also stored here.

LinkedIn uses the term “API key” to refer to “client id”. They also use the term “Secret Key” to refer to “client_secret”. We alias those terms in the config.

Attributes

api[RW]
api_key[RW]
api_version[RW]
authorize_url[RW]
client_id[RW]
client_secret[RW]
default_profile_fields[RW]
redirect_uri[RW]
scope[RW]
secret_key[RW]
site[RW]
token_url[RW]

Public Class Methods

new() click to toggle source
# File lib/linked_in/configuration.rb, line 33
def initialize
  @api = "https://api.linkedin.com"
  @api_version = "/v2"
  @site = "https://www.linkedin.com"
  @token_url = "/uas/oauth2/accessToken"
  @authorize_url = "/uas/oauth2/authorization"
end