This Azure Function creates an iCalendar with all your Foursquare Swarm check-ins as events. You can subscribe to this iCalendar from your favorite calendaring program and have calendar entries created on every check-in
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See Cloud deployment for notes on how to deploy the project on Azure.
In order for this service to work you will need:
- A valid Azure subscription
- An [Foursquare developer account](TODO: url)
You will also need the following software installed in your dev enviroment:
- Azure CLI
- Azure Function Core Tools
- Node.js (required for Azure Functions Core Tools)
To use Foursquare APIs, you need to register with the Foursquare Developer and create an application, using this form.
Generate a unique set of keys (a keyset) that will serve as your application’s credentials:
- Client ID: This uniquely identifies your application.
- Client Secret: This is a client secret (like a password for your Client ID), which should be kept confidential.
- Access Token: A unique access token
You should copy and save your keys locally in the credentials.sh file, for use in this application, as follows:
FOURSQUARECLIENTID=<Client ID>
FOURSQUARECLIENTSECRET=<Client Secret>
FOURSQUAREACCESSTOKEN=<Access Token>
These credentials will be privatly uploaded to Azure as App settings by the bootstrap.sh script.
Install locally all required modules as follows:
$ npm install
First you will need to set the values of the following variables in definitions.sh file:
rgName=<Resource Group Name>
storageName=<Storage Account Name>
functionAppName=<FunctionApp Name>
location=<Location>
Note: rgName
and storageName
should be unique across your Azure subscription. functionAppName
should be unique across Azure(!). location
should be an Azure Location preferably be as close as possible to your physical location.