Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WordPress Web Application Development - Second Edition
  • Table Of Contents Toc
WordPress Web Application Development - Second Edition

WordPress Web Application Development - Second Edition

By : Rakhitha Nimesh Ratnayake
5 (2)
close
close
WordPress Web Application Development - Second Edition

WordPress Web Application Development - Second Edition

5 (2)
By: Rakhitha Nimesh Ratnayake

Overview of this book

This book is intended for WordPress developers and designers who want to develop quality web applications within a limited time frame and for maximum profit. Prior knowledge of basic web development and design is assumed.
Table of Contents (14 chapters)
close
close
13
Index

Integrating API access tokens


In the preceding section, we introduced API authentication to prevent unnecessary access to the API. Even the authenticated users can overload the API by accessing it unnecessarily. Therefore, we need to implement user tokens for limiting the use of the API. There can be many reasons for limiting requests to an API. We can think of two main reasons for limiting the API access as listed here:

  • To avoid the unnecessary overloading of server resources

  • To bill the users based on API usage

If you are developing a premium API, it's important to track its usage for billing purposes. Various APIs use unique parameters to measure the API usage. Here are some of the unique ways of measuring API usage:

  • The Twitter API uses the number of requests per hour to measure API usage

  • Google Translate uses the number of words translated to measure API usage

  • Google Cloud SQL uses input and output storage to measure API usage

Here, we won't measure the usage or limit the access to the portfolio...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WordPress Web Application Development - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon