api/ruby/building-your-first-github-app/advanced_server.rb
# Authenticate each installation of the app in order to run API operations
Authenticate each installation of the app in order to run API operations
Authenticate each installation of the app in order to run API operations
def authenticate_installation(payload)
      installation_id = payload['installation']['id']
      installation_token = @client.create_app_installation_access_token(installation_id)[:token]
      @bot_client = Octokit::Client.new(bearer_token: installation_token)
    end
def authenticate_installation ( payload ) installation_id = payload [ 'installation' ] [ 'id' ] installation_token = @client . create_app_installation_access_token ( installation_id ) [ :token ] @bot_client = Octokit :: Client . new ( bearer_token : installation_token ) end
Authenticate each installation of the app in order to run API operations
Authenticate each installation of the app in order to run API operations
payload
<not_specific>