This video shows a demo of a client software library paying a server to access an API endpoint using Bitcoin lightning payments.
you can find the source of the server and client here: github.com/bumi/ln-markdown-to-pdf
the two ruby libraries that are used:
for the server side: github.com/bumi/rack-lightning
for the client side: github.com/bumi/faraday_ln_paywall/
Please let me know if you have any questions and I'd love to hear feedback and your ideas on this: firstname.lastname@example.org