We would like to welcome you to the community! Thanks for being a part of the team!
Cheer,
${addressFrom.name}
-
From 18eea7e743315762aeda8121fcd58600d5d3a235 Mon Sep 17 00:00:00 2001
From: mheavey2 <85061867+mheavey2@users.noreply.github.com>
Date: Wed, 22 Oct 2025 15:14:53 +0100
Subject: [PATCH 1/2] fix: migrate Foursquare API to new Places API endpoints
(#1474)
* fix: migrate Foursquare API to new Places API endpoints
* docs: update readme
* feat: add fetch error handling to the Foursquare API example
---------
Co-authored-by: Yashar Fakhari <6448697+YasharF@users.noreply.github.com>
---
.env.example | 3 +-
README.md | 16 ++++----
controllers/api.js | 44 +++++++++++++--------
views/api/foursquare.pug | 84 ++++++++++++++++++----------------------
4 files changed, 76 insertions(+), 71 deletions(-)
diff --git a/.env.example b/.env.example
index ddb75f3f4a..27030223c0 100644
--- a/.env.example
+++ b/.env.example
@@ -37,8 +37,7 @@ FACEBOOK_SECRET=41860e58c256a3d7ad8267d3c1939a4a
# FB Pixel ID is optional if you are trying to do customer rtracking
FACEBOOK_PIXEL_ID=
-FOURSQUARE_ID=2STROLSFBMZLAHG3IBA141EM2HGRF0IRIBB4KXMOGA2EH3JG
-FOURSQUARE_SECRET=UAABFAWTIHIUFBL0PDC3TDMSXJF2GTGWLD3BES1QHXKAIYQB
+FOURSQUARE_APIKEY=foursquare-service-key
GITHUB_ID=cb448b1d4f0c743a1e36
GITHUB_SECRET=815aa4606f476444691c5f1c16b9c70da6714dc6
diff --git a/README.md b/README.md
index f9e0065631..a3df4e5b73 100644
--- a/README.md
+++ b/README.md
@@ -220,13 +220,15 @@ Obtain SMTP credentials from a provider for transactional emails. Set the SMTP_U
-- Go to Foursquare for Developers and log in
-- Click on **My Apps** in the top menu
-- Click the **Create A New App** button
-- Enter _App Name_, _Welcome page url_,
-- For **Redirect URI**: your BASE_URL value followed by /auth/foursquare/callback (i.e. `http://localhost:8080/auth/foursquare/callback` )
-- Click **Save Changes**
-- Copy and paste _Client ID_ and _Client Secret_ keys into `.env` file
+- Go to Foursquare for Developers and log in
+
+- Click on **Create a new project** button
+- Enter your _Organization_ and _Project Name_
+- Click **Create**
+- Navigate to your project
+- Click **Settings** in the left-hand-side menu
+- Generate a Service API Key
+- Copy and paste the Service API Key as `FOURSQUARE_APIKEY` in your `.env` file
We would like to welcome you to the community! Thanks for being a part of the team!
Cheer,
${addressFrom.name}
-