Have you ever wanted a simple REST API that enabled you to check if your application has internet connection?
Look no further.
Internet as a Service (IAAS) provides users with an easy, robust, reliable, and atomic REST API for most internet connection needs. If your requirements for internet availability fall under the following:
- Your application needs to check if it has internet availability
- You want to receive either a positive or negative confirmation of availability, or the lack thereof
- You only need to check for internet availability at most once every 24 hours
Then you are welcome to use IAAS for your internet connection needs!
IAAS can be reached at https://iaas.woohoojin.dev/
import requests
def checkInternetConnectionAffirmative():
try:
result = requests.get(f"https://iaas.woohoojin.dev/do-i-the-invoker-of-iaas-have-internet-availability-right-now-at-this-current-point-in-time-assuming-iaas-is-currently-properly-functional-and-live-for-any-get-request")
return result.text == "YES" # Internet is available
except:
return False # Internet is unavailable (probably)
def checkInternetConnectionNegated():
try:
result = requests.get(f"https://iaas.woohoojin.dev/do-i-the-invoker-of-iaas-not-have-internet-availability-right-now-at-this-current-point-in-time-assuming-iaas-is-currently-properly-functional-and-live-for-any-get-request")
return result.text == "NO" # Internet is available
except:
return False # Internet is unavailable (probably)
URL : /do-i-the-invoker-of-iaas-have-internet-availability-right-now-at-this-current-point-in-time-assuming-iaas-is-currently-properly-functional-and-live-for-any-get-request
Method : GET
Auth required : NO
Permissions required : None
Rate limit : 1 request per day
Description : Returns the string "YES".
Code : 200 OK
Content examples
YES
Code : 429 Too Many Requests
Content examples
For a request made less than 24 hours before the previous request
Too Many Requests
1 per 1 day
URL : /do-i-the-invoker-of-iaas-not-have-internet-availability-right-now-at-this-current-point-in-time-assuming-iaas-is-currently-properly-functional-and-live-for-any-get-request
Method : GET
Auth required : NO
Permissions required : None
Rate limit : 1 request per day
Description : Returns the string "NO".
Code : 200 OK
Content examples
NO
Code : 429 Too Many Requests
Content examples
For a request made less than 24 hours before the previous request
Too Many Requests
1 per 1 day