Can't get Foursquare to push live checkins to my URL using the venue push API - foursquare

I'm the manager of a venue and I'm trying to get checkins live using the Venue Push API. I have setup two Foursquare apps, one using my personal account and one using venue management account (as far as I understand, these are two seperate accounts because I can switch between them when I'm on foursquare.com).
When I send test push using the push console on the Foursquare developer panel from https://foursquare.com/developers/app/.../push I get a test notification to the URL that I specified, but no matter what, I haven't been able to receive checkins live.
The account is verified and I'm the manager of the venue, yet I still can't get live checkins.
Is there something I'm missing? I would appreciate any help. Thanks.

You (or a venue manager) still needs to authorize your app to send pushes. From the docs:
It's important to stress that in order for your app to see pushes for
a venue, at least one of this venue's managers must have authorized
use of your app, otherwise you may see “Your app can't see pushes from
that venue” errors.
https://developer.foursquare.com/overview/realtime

Related

Test scenarios for tip webhook test

I am developing a new feature, which will listen to tip notifications on venues, and I am having trouble to test it.
As far as I could check, to create a venue, and subscribe it on my foursquare app, I need to pay.
Is there any alternative to simulate or test, tip notifications?
On the app there is a test button, that only send checkin notifications.
I need to test it on dev environment before sending an untested code to production.
You can only get venue notifications for venues that you are a manager of.
See info on the venue push API here. https://developer.foursquare.com/overview/realtime
This API is designed for applications whose users are managers of
venues, allowing the application to get a real-time view of activity
at their venues. The Venue Push API will push to your application
content from venues managed by any of your application's authorized
users (or at a home venue that was created by one of your
application's authorized users). Supported venue content are
check-ins, likes, tips, and photos at the venue.
It's important to stress that in order for your app to see pushes for
a venue, at least one of this venue's managers must have authorized
use of your app, otherwise you may see “Your app can't see pushes from
that venue” errors.
After exchanging several emails with api#foursquare.com, they set me as a manager of a venue I created on http://foursquare.com/add-place, and finally I could move on with my tests.
I strongly recommend to Foursquare to create some kind of test for all possible Real Time API notifications, or create some kind of sandbox.
Thanks.

Instagram API review submission - complete app needed?

I just noticed that new Instagram API's sandbox has too many restrictions and I would need to submit review to build my app. I googled to see if there's a way around but looks like using their API would be better than anything.
The app I was going to build requires all the API endpoints that Instagram doesn't allow Sandbox users to access (such as hashtag search and get recent tags). Do I just build one assuming I can get responses from the endpoints? I am pretty confused. Anything would help. Thanks!
You think you have two options:
Since, instagram allows you get the contents from the user's in the sandbox mode.
Create an App using link and submit for review to get experience with public data available in instagram.

Get list or count of registered users for application

Using Instagram's API, is there any way to request a list or count of an application's registered users?
Instagram's real-time subscriptions can send notifications whenever a registered user posts to their feed, but I haven't found a way to get a list of those users, or even a count. This is easy enough to store server-side, but seems like something which should be discoverable.
Your Question
Using Instagram's API, is there any way to request a list of an application's registered users?
A quick search yielded no results for such a functionality. This make sense, though, since Instagram wouldn't want to open up all its users to any app designer.
Your App
If you want the number of users using your app, then you can easily track this yourself.
Instagram App
As mentioned before, Instagram probably won't provide even basic count information about its registered users. Presumably, this is valuable information.
Your Example
Instagram's real-time subscriptions can send notifications whenever a registered user posts to their feed...
This is true, but with very limited scope. The subscriptions below are based on users who are using your app or other simple criteria such as tags or geographic data.
Users: receive notifications when users who have registered with your application post new photos.
Tags: receive notifications when a new photo is tagged with tags of your choosing
Locations: receive notifications when new photos are posted and tagged with a specific location
Geographies: receive notifications when a new photos are posted in an arbitrary geographical location as defined by a center point
and radius
As far as I have found this far there is no IG API, however as already indicated you can keep track on your app. HOWEVER, what has not been pointed out is that you won't be made aware if users terminate their account or revoke your app so the count's might be a little off. (or worse if you didnt start keeping track since the public launch of your app)
You could test on a periodic basis if you still have access, but that would require additional code, and a lot of API calls if you app has a lot of users. I hope that IG will add this function at some point.

herenow api has been rolled out. Is there any way to get the checkedin userdetail?

We have integrated hereNow api in our appliction to show the checked in customers for the particular venue. Now because of the policy change in the hereNow api we are not getting any results. Is there any way to get the checkedin user details for the venue without being as a store manager?
Thanks,
Shiva
No. The identities of users currently checked in to a venue are only available to apps making requests on the behalf of friends, other people checked in to the venue, or to a manager of the venue.

FourSquare Venues API

I am a bit shaky on how to use the venues API in forusquare. My main question is related to OAuth. I want to be able to do venue searches on the server side of the system, and i need the server to login into foursquare automatically. It says on the website that foursquare doesn't require user authentication to use some of the venue functions, however whenever i try to do a call to: venues/categories without specifying an oath_token I get a permission error.
How can i do venue calls without having to use a user login?
Thanks in advance.
It would help if you had given the exact url you are trying to call, but in general:
The userless requests to Foursquare still require the client id and client secret that you get when you register the OAuth Consumer in foursquare.
Using the id + secret you can access Venue API endpoints without authenticating with a user.
So if I got to the Venues Categories endpoint you can see that it does not require and acting user and thus accessing:
https://api.foursquare.com/v2/venues/categories?client_id={0}&client_secret={1}&v={2}
Will get the categories list.
In that example, replace {0} with your client id, {1} with your client secret and {2} with whatever version date you feel comfortable with, today would be 20111218
More can be found here https://developer.foursquare.com/overview/auth#userless
you can use https://developer.foursquare.com/docs/explore#req=/venues/categories and in the view box use /venues/categories to see a list of all of the venue codes to use. then simply use:
https://api.foursquare.com/v2/venues/search?ll="+ ll+"&radius=10000&limit=50&categoryId="+catID+"&client_secret=xxx&client_id=xxx
in your call to load the url based upon ll which is long and lat and it will create a response of json object to parse. The App/Web site does not need to be authorized for such a search, and the limit goes to 5000 calls per hour, and you can increase this by emailing Foursquare with the application information and screen image of the app showing you credit Foursquare with the info, like a Foursquare button, etc. - Hope this helps.
Visit https://foursquare.com/developers/apps to get your API keys. Once you click "Create A New App", your Client ID and Client Secret should be visible.
Once you have your keys, try plugging them into this search:
https://api.foursquare.com/v2/venues/search?near=seattle,wa&query=coffee&v=20150214&m=foursquare&client_secret=xxx&client_id=xxx

Resources