Test scenarios for tip webhook test - foursquare

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.

Related

Accessing ms teams activity feed

Is there any way to send activities that are happening in external application to ms teams activity feed through any api.Now I have designed a blog where other users can like comment and follow my post in the blog.So I want to get all the activities that are happening in my blog to ms teams.
The Microsoft Graph REST API uses a webhook mechanism to deliver change notifications to clients. A client is a web service that configures its own URL to receive notifications. Client apps use notifications to update their state upon changes.
subscription operations require read permission to the resource. For example, to get notifications for messages, your app needs the Mail.Read permission.
Please look at change notification API

Can I integrate getstream.io notification services in Drupal 8 site? If no then any other way to use the notification services in Drupal 8 site?

I need to add push notification in my web site
If a user has made payment for something... we show them alert in their account page on the website that you are now successfully connected to this community
If a user has done payment by check... we clear the payments by check through a cron job... once the job runs and payment is cleared... we show a notification to user whenever they log in saying that their check payment is cleared
A user sends a request to connect to an organisation... that organisation's admin should get an alert in their system saying that so and so person is pending approval from you.
Something similar to alerts that we get in our net banking might be... that your credit card payment is pending... something like that
Like we also get notifications on Facebook... the difference will be that instead of notifications we want to show alerts or messages directly displayed in their account
So, you want notifications in your system about payments.
In its simplest form, you could do it manually with emails, and/or popups in your application, that are loaded from DB when they login. This is sort of a manual system, and the Minimum Viable Feature could be quite easy to build yourself.
If you want it more advanced, like you mentioned, similar to Facebook's notifications button and feed. Then, yes, it might be easier to use getstream.io. It also has websocket integrations so you can get those notifications pushed in real-time. You can then also push other types of notifications in there, like for example: a notification when the user has logged in from a different browser (for security reasons).
I hope this answers your question.

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

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

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.

Create foursquare venue for real-time api

I've created a consumer and managed to get a test running of the real-time api (user push). How do I create and tie a venue to my consumer, so when users checkin at my venue, it will push to my application?
You can either claim a venue you are managing, or you can create a home venue with your authenticated user. Then, you should automatically get a push notification for every checkin.
https://developer.foursquare.com/overview/realtime (see point "Venue Push API") says:
The venue push API will push to your application every time a user checks in to a venue managed by any of your OAuth consumer's authorized users, or into a home venue that was created by one of your consumer's authorized users. This API is designed for applications whose users are managers of venues, allowing your application to get a real-time view of traffic into their venue, or for applications enabling foursquare-powered automation of a user's home.

Resources