Menu

Keep a floor-plan availability map in sync with a Google Sheet, with no OAuth or API keys
πŸ“°

Keep a floor-plan availability map in sync with a Google Sheet, with no OAuth or API keys

DEV Community: phpΒ·David CorneyΒ·2 days ago
#9R4XSFOl
#devto#dev#sheet#sync#wordpress
Long article (421 words) β€” no AI summary yet.
Reading 0:00
15s threshold

A property project's website needs to show which units are available, reserved or sold. The people who know are in sales, and they live in a spreadsheet. If every status change needs a developer or a WordPress login, the website falls behind.

Here's a pattern that keeps a WordPress floor-plan map in sync with a Google Sheet, with no Google API, OAuth consent screen or API keys.

Serve the sheet as a CSV

A Google Sheet can be published as a CSV at a public HTTPS URL (in Sheets: File β†’ Share β†’ Publish to web , then choose the sheet and Comma-separated values ). You can also use the .../export?format=csv form of the sheet URL. Your site can fetch that file with no Google login at all.

Fetch it safely and cache it

Fetch HTTPS only, with a size cap and a timeout. In WordPress, wp_safe_remote_get() handles the safe-URL part.

Cache the parsed result in a transient.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.