Independent location data platform
The Foursquare API gives developers access to the Foursquare database of venues
and users. With the API, developers can build applications that allow
Foursquare users to check in to venues, find nearby venues, get
recommendations, and more.
Here are some examples of what you can build with the Foursquare API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
foursquare: {
type: "app",
app: "foursquare",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.foursquare.com/v2/users/self`,
headers: {
Authorization: `Bearer ${this.foursquare.$auth.oauth_access_token}`,
},
params: {
oauth_token: `${this.foursquare.$auth.oauth_access_token}`,
"v": `20191001`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})