app/controllers/api_controller.rb
# Use telnet to access Pandanet to get member information
Use telnet to access Pandanet to get member information
Use telnet to access Pandanet to get member information
def pandanet_username
    username = params.fetch('username')
    stats = Pandanet::Client.new.stats(username)
    if stats.nil?
      render json: '{"error": "not_found"}', status: :not_found
    else
      render json: stats.to_h
    end
  end
def pandanet_username username = params . fetch ( 'username' ) stats = Pandanet :: Client . new . stats ( username ) if stats . nil? render json : '{"error": "not_found"}' , status : :not_found else render json : stats . to_h end end
Use telnet to access Pandanet to get member information
Use telnet to access Pandanet to get member information