How easy is Wrapi to implement?
All you need to do is install the Wrapi package (available in many languages), write a few lines of code into your API’s middleware, and …, thats actually it. Wrapi can take up less than 20 lines of code in your API, allowing you to keep devving without any inconveniences.How does Wrapi work?
Essentially, you link each of your users to a UID (User ID) in Wrapi. Your user can then create API keys and load credits onto their account. From there, you insert a few lines into your middleware that do the following:- Get the route name and API key from the request
- Figure out the cost of the API call
- Log the request and bill the API key accordingly