find venue with twitter id via API - foursquare

We integrate our service to 4sqr, this is done by our customer informing us of their venue-id from the 4sqr URL. However, if a venue is claimed and a twitter associated with the venue the url is switched to one with the twitter id.
so, one of two things after this twitter acct is in place for a venue:
1. how does one find the venue-id in your UI?
or
2. how does one query the venue details using the twitter handle?
thanks

Foursquare's /users/search should work (you're basically searching for a "venue user"). https://developer.foursquare.com/docs/explore#req=users/search%3Ftwitter%3Dwinkellyauto

Related

Instagram feeds using tag name of particular user

I am trying to fetch the instagram feeds to my site using tag name.
https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN
above is the api which I am using to get the feeds.
Now the feeds are displaying from all the users who use the tag. I need to restrict the feeds for the particular user who use the tag name.
Anyone come across this?
Thanks,
The current version of the Instagram Api does not have an endpoint that will allow you to get media by tag-name AND user-id. Your best bet is to use 1 of the following endpoints, and then loop through the results and filter out the media that matches the 2nd condition.
Search for posts by given hashtag's name using GET /tags/{tag-name}/media/recent API endpoint request and then filter the response list of media to match the user-id for the particular user in question.
or
Search for posts by the particular user using GET /users/{user-id}/media/recent API endpoint request and then manually check every post if its tags array contains the specific hashtag you are looking for.
I recommend you go with option 2 as that will be faster, since an individual user feed is a much smaller data set than media from 1000s of Instagram users tagged with a hashtag.

foursquare api who's been there

I which to display on my website a the list of maybe the last 5 peoples who checked in my venue.
I didn't find any method in the api to do that, the closest was showing your friend...
I tell my boss that it wasn't possible to do that then he shows me this site :
http://www.brooklynmuseum.org/community/foursquare/
How is it possible to get this kind of list and if possible with no authentication (my server will do the call no a real person so no oauth...)
thanks !
You can use the Venue Push API (documented here) to notify your website whenever a user checks in to your managed venue, which you can use to update such a list.

Is there a foursquare api method for venues owners to post schedules to?

Right now, when you check into a movie theater, you have the ability to check into a specific movie showing.
If you're a venue owner that has a schedule that people can check into, is there a foursquare api method that lets you upload your schedule? What do the movie theaters use?
This schedule you're referring too is called "events" on Foursquare. Foursquare is currently partnered with ESPN (sporting events), MovieTickets.com (Movie Times) & SongKick (concerts) for the data you're seeing. There is no way (currently) for you to create an event at a venue using the Foursquare api. However, it looks like this feature may be on its way based on the update at the end of this blog post.
http://blog.foursquare.com/2011/08/18/foursquare_events/
Not through the API, the current ability to edit a venue in FourSquare can be found at: https://developer.foursquare.com/docs/venues/edit
Events can be viewed through a venue using the API here: https://developer.foursquare.com/docs/venues/events
Once you manage a venue on FourSquare, you can maintain it through the Dashboard - found here:
https://foursquare.com/business/merchants/dashboard

Foursquare Checkin in delivery restaurants

I have an app where you can buy food on delivery restaurants.
Can I use the Foursquare API so the user can check-in on the restaurant that he order from?
Probably the user will not be in the resutaurant it self when he checkin.
There is an special way to do this on the foursquare api?
thanks
You can check-in any user that has authorized your application at a venue using the /checkins/add endpoint in the API. If you don't know the user's actual location (or fully expect them not to actually be there, but have a legitimate reason to be checking in, e.g. for delivery) be sure to leave the lat/lng parameter blank. The check-in will go through and be in the user's history, but won't count for badges/mayorships, etc.
I'm not too sure what you're asking. I don't think you can check in to places if you're not even near them (or at least I wasn't able to when I last used the 4sq API).
Check this tutorial out if you need help getting started with the API, or read the 4sq api documentation.

How to get Top5 user of a Foursquare Venue

using the Foursquare API I am currently able to get a venue Mayor but can I got the Top5 user?
Thanks
To get the top 5 (or 10) users for a venue, you'll need to use foursquare's Merchant API and act on the behalf of the venue's manager.
In particular, you'd use the /venues/stats endpoint (https://developer.foursquare.com/merchant/venues/stats.html). For more information about the Merchant API and venue managers, see: https://developer.foursquare.com/merchant/
In short no. The best you can get is the stats from a venue: Foursquare API Venue those contain: "Contains checkinsCount (total checkins ever here), usersCount (total users who have ever checked in here), and tipCount (number of tips here)."
From my experience the API is almost designed to avoid this sort of info gathering. Best way would be watch as people check in to the venue and create your own stats from that information.

Resources