I have an app that
- initiates checkins via the API
- receives checkin data via the push mechanism
The JSON object returned by an API call contains a source parameter denoting the app. [This actually seems unnecessary, since my app is initiating the API call...]
The corresponding real-time push response sent to my app does NOT have the source parameter included. Why is that?
I'm attempting to filter out the push data related to my app's checkins, and the easiest way would be to inspect source parameter. [I could also inspect the checkin ids, and watch for duplicates in the two paths; but that seems unnecessary if the source parameter was always included.]
Unfortunately, that particular field isn't currently passed along in our Push API. What exactly are you trying to do?
If you're looking to get real-time notifications about your own app's check-ins, it seems like you don't really need foursquare's push API? You could just have your app send-up the info you want to your own servers at the same time (or immediately after) you check in the user on foursquare, so that you still get real-time info.
If that doesn't work for you, if the user has authorized your application (which will be the case if you're using the User Push API), you can query our check-in detail endpoint (https://developer.foursquare.com/docs/checkins/checkins) to get that info, and filter away the check-ins you're not interested in.
Related
I would like to 'export' data out of ActiveCollab into another 3rd party tool (Helix ALM), but I'm confused about how webhooks function. Do webhooks execute a POST when changes are made in ActiveCollab, or are they executed by the 3rd party app and Activecollab returns the information that is requested in them? I'm trying to understand if ActiveCollab is 'pushing' data when changes are made, or if the data is being requested by 3rd party app. If AC is pushing data out, does it do so when ANY change is made or can it be configured to POST on specific/configurable changes?
I have reviewed the webhooks documentation but I'm unclear on the intended functionality.
https://activecollab.com/help/books/my-active-collab/webhooks
ActiveCollab sends out POST requests on relevant model events. These events are JSON encoded, and system will set User-Agent header to Active Collab when making a request.
No filtering for custom webhooks is currently available. You'll receive all webhooks, and you should filter them out on your end. Each webhook has event_type property set that you can use to find events that you are interested in.
I wan't to fetch only messages that are only internal to organization.
Right now the way i see is fetch domains first then for each message see if from/sender domain belongs to that message , based on that differentiate.
But this is lengthy process and not a foolproof technique.
Is there any GRAPH API query i can use which readily provides this ?
It does not apear that the REST API queries for Office 365 includes this information directly in the messages. From the Version 2.0 And the Beta this is not included in message output.
However, it looks like you might be able to get it from the REST API via the headers.
Try the following query:
https://graph.microsoft.com/beta/me/messages?$select=internetMessageHeaders&$top=1
This takes top one messages and shows you the email header of the message.
In the header look for X-OriginatorOrg. The value should be the main domain of your organisation.
Alternatively you can look at the X-MS-Exchange-Organization-MessageDirectionalityheader. If the value here is Originating it should come from inside your own organisation.
Im making a dashboard for my users (in app) where they can subscribe to different segments, and would just check if I understood this somewhat right.
I make segments in onesignal.com dashboard, and in one segment i make a key = "value" (e.g test)
I send a push from my server and include
"tag" => "test",
Application can now use sendTag in an event (like a button user presses), and "subscribe" to that tag in app.
Is it more or less how this system works. I really have a hard time reading it out of the docs.
You have this all correct, if you choose you can also use the tags field on the OneSignal create notification REST API POST call instead creating segments on the dashboard first.
The Evernote documentation on web hooks states the following:
If your service only cares about some notes, we can configure a filter on your API key. Notifications will only be sent when the note matches the filter. For example, the filter resource:image/* causes notifications to be sent anytime a note containing at least one image attachment is created or updated. The filter is configured on your API key, so it is the same for all users. The filter string supports our full search grammar.
This is great, except that the Webhook Request form doesn't have any input to specify a filter.
How do we make a request with specific filters?
If we have multiple environments (dev, stage, prod), is it okay to make a request for the same API Consumer Key but for different URLs?
I got a response to my webhook request via email, at which point they asked if I needed the webhook to point to the sandbox or production environment. In my response, I also mentioned the filter I would like applied, and they proceeded to make the webhook the next day. Overall it took about a week and a half to get it setup.
The native application doesn't show all the activity, only the most recent.
Therefore I lose 70-90% of my notifications overnight. There must be a way to get all that historical data.
I told you can't, but, thinking.. you can. :)
The API don't provide that facility.. You can check all endpoints here: http://instagram.com/developer/endpoints/
But you can iterate over all your medias an get all comments and likes. If you store it locally, after, will be possible to request API again and check your new unseen interactions.
It will work for likes and comments.