Create foursquare venue for real-time api - foursquare

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.

Related

Docusign Admin API and ISV questions

We are from MCAS Team from Microsoft, India. We have specific Docusign Integration use case which needs your expert suggestion.
MCAS(Microsoft Cloud App Security Team) one liner – MCAS is a single/ common platform provided to Microsoft customers for monitoring all their cloud applications used in their organization helping the customer admin to monitor & track malicious/ unusual user behavior and configure necessary alerts & actions.
MCAS Documentation for more details : https://learn.microsoft.com/en-us/cloud-app-security/
Our Use case: Integrate the Docusign API - https://developers.docusign.com/docs/admin-api/reference/users/users/getusers/
and
https://developers.docusign.com/docs/monitor-api/reference/monitor/dataset/getstream/
Queries:
How to avoid the DocuSign App integration key Go-Live process for every MCAS customer(tenant)?
How to get a common higher rate limit benchmark for all the Microsoft MCAS customer(tenant) without explicit action by every MCAS tenant
How to get the Events of a organization in Global App Context. As on date, Events API is Integration key level but how to get events at Organization level
How to get the users of an organization. Current Admin API only supports by passing either of AccountId (API Account Id) or Reserve Domain Id or User emailid
User Profile Admin API expects email Id as input. This is returning array of users. How to get the User by User Id?
User roles are not returned in getUsers Admin API. Why?
Any API which would get the to get the user details by Id?
Every IK (Integration Key) must be approved to go live so that it can be used in production, but you can use the same IK for multiple things if they are related (back-end and front-end of app for example).
Work with your DocuSign rep (support/sales) to help increase your rate limit if there's a legit need to do so.
See how to get Monitoring Events using the DocuSign Monitor API.
The DocuSign Admin API can be used to get all the users in an
organization.
REST eSignature API can be used to get a user by userID (GET
/restapi/v2.1/accounts/{accountId}/users/{userId})
User groups and permission profiles are returned by Admin API or eSignature API. Roles are related to templates, so the terminology may be the issue here.
For users of eSignature you can use https://developers.docusign.com/docs/esign-rest-api/reference/users/users/get/

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

Personalized web push notifications

I want to send web push notifications to registered users, are there any best practices on how to implement the cases when multiple users have access to the same device and one should not see the message of another user.
Thanks in advance.
A web push notification subscription is tied to the browser, not the device.
What you need to do is, map this id with your registered user when he logs in from a particular browser. Also, you need to remove the subscription id mapping with any other users in the system.
In the case of multiple users using the same browser, the above logic will make sure that at a time, a particular browser subscription id is linked only to a single user.
And when you want to send a notification to a registered user, you can retrieve all push subscription IDs linked to this user in your database, and trigger notifications to those subscription IDs.
And don't forget to unmap a subscription id when the user logs out from a browser. Otherwise, he will continue to receive all notifications even if he has logged out.

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

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.

Resources