New to Laravel, and in the early stages of building out a small messaging web app. Looking to test how to consume a protected Wild Apricot (URL: https://www.wildapricot.com/ ) api in a similar manner to their sample app: https://github.com/WildApricot/ApiSamples/blob/master/PHP/sampleApplication.php
Running that on the cli works fine.. so the code works.. and the API requires an authentication to be done before issuing the queries. But not sure how to refactor this sample code to Laravel.. and scale that across many different queries..
Have been looking a bit on a few examples, including https://dev.to/kingsconsult/how-to-consume-restful-apis-in-laravel-8-and-laravel-7-4gii , which are good.. but they seem to all work on non authenticated API's. Well - on API's where only API key is required only, but not the authentication that Wild Apricot requires.
See https://github.com/WildApricot/ApiSamples/blob/master/PHP/sampleApplication.php for the code example... not sure how to paste that in here such that is looks decent. ;-)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community