greghaygood / hiv-locator-proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avvo Proxy

This is an example proxy script for working with the HIV Locator API from a browser. It is meant for instructional purposes only, and should not be used in a production environment with additional security measures.

Usage

To call an API, pass your various parameters:

fetch('./locator.php?zip=30309')
.then(response => response.json())
.then(data => processTheData(data))

Any other parameters will be sent to the requested endpoint, so this should allow full access to the API. It is currently only meant for making GET requests; any POST/PUT/DELETE requests will fail in unexpected (but spectacular?!) ways.

Cheers!

About

License:MIT License


Languages

Language:PHP 100.0%