module CivicSIPSdk

Constants

VERSION

Public Instance Methods

new_client(id, env, private_key, secret) click to toggle source

Creates an instance of CivicSIPSdk::Client

@param id [String] the Civic application id @param env [Symbol] the Civic application environment @param private_key [String] the Civic private signing key @param secret [String] the Civic application secret @return [CivicSIPSdk::Client] the client to exchange the JWT code for user data

# File lib/civic_sip_sdk.rb, line 18
def new_client(id, env, private_key, secret)
  app_config = AppConfig.new(
    id: id,
    env: env,
    private_key: private_key,
    secret: secret
  )

  Client.new(config: app_config)
end