How to retrieve users recent activity [audit] from google's api - angularjs

We have a requirement to track the users recent activity, basically auditing and fetch those tracked details for further process. It is similar to recent activity of a user in Linkedin?
I checked angular-google-analytics github lib, it shows how to track users activity but there is no api to fetch user's activity
i also found google's Real Time Reporting API but that documentation made me more confuse.
I surveyed http://heapanalytics.com/, they also don't expose any API to fetch the tracked user data
Please suggest, how to take this forward.

Related

What is the most suitable way to save user's actions in react webpage (SPA)?

I'm building a SPA site in React (using redux).
To my site, any user can connect through Google or Facebook.
Each user who logs in to the site receives a personal user_id.
For each user, the system needs to keep a history of documents created by this same user (like the recent docs in Word).
I need to create functionality that whenever the user is logged in he will be able to see a history of the five documents he has created/updated.
In addition, the latest documents will load even after disconnecting and reconnecting to the system.
To load the history into the system I am thinking of using a dedicated index in ElasticSearch.
My question is which way would be suitable the most to use when the user is already logged in and creates several documents one after the other -
Should I need to save everything within the index in ES or is there a smart way to save and update the information locally without producing a lot of calls to DB?
I want that in the end there will be only 2 DB calls that are made in total - one call to load the information on login and one call to update the information when the user logs out. Any other create and update docs will save locally on the client side until leaving the site.

About the vault's audit log

I would like to get the audit logs for the Vault using the API, in order to get the audit logs in the API and monitor the logs in the SIEM.
I followed various links, but did not get any useful information.
https://support.google.com/vault/answer/4239060?hl=en
https://googleapis.github.io/google-api-python-client/docs/dyn/vault_v1.html
https://developers.google.com/vault/reference/rest
Is there an API to handle vault audit logs in the first place? If so, can you provide me with API endpoints and instructions or links on how to use them?
Audit logs are not currently available in Vault API.
There's currently a feature request in Issue Tracker regarding the implementation of this functionality. I'd suggest you to click the star on the top-left in order to keep track of this request and to help prioritizing its implementation:
Audit reporting functionality #api #audit-logs

How to retrieve site url's efficiently for all users in a tenant using Microsoft Graph API

Here is the problem:
I have a tenant with 50,000 users Every day I need to pull that user list to see what has changed. Example: Which users were added or removed, and what are their mySite URL is.
I can get some general information calling /users but, I need each user's mySite. The only way I have found to retrieve that is to call /users/userId?$select=mySite.
This implies I must make 50k calls and I then encounter throttling issues.
Is there a way through Microsoft Graph (or some other mechanism) to pull the user data, including mySite efficiently?

PayPals Instant Payments Notifications for WinForms

I am working on a WinForms application that has the ability to create and send invoices. In addition to creating invoices locally, the app uses PayPals Permissions API(and the invoicing API) to allow the application to (optionally)send invoices on the clients behalf.
My question is as follows, what is the best method of keeping track of the current status of invoices sent using PayPal? The application needs to know the status of each invoice so it can update its records locally.
I am aware of PayPals Instant Payments Notifications although I am unsure how this would fit together with a WinForms application(?).
My initial thought was to use the PayPal Invoicing API to query the required information on a as and when need-to-know basis. Additionally, a function that ran on a different thread could be run periodically to retrieve information in the background from the API, updating records locally.
Am I failing to acknowledge a better solution?
IPN will not fit invoice payment in case of creating invoice using permission API as there's no parameter to set the IPN URL in the invoice API. Your idea of calling GetInvoiceDetails API to retrieve invoice status based on need-to-know sounds a good solution for me.

Salesforce - HubSpot API calls

in my current company we are using Salesforce and HubSpot, and we have synchronized Contacts and Leads.
HubSpot does around 7000-8000 daily api calls, but I do not know what is the frequency HubSpot connects to Salesforce, or if there are some ways to reduce this number.
Thanks.
Salesforce limits its API calls with the edition and licenses you have see this link
(https://help.salesforce.com/HTViewHelpDoc?id=integrate_api_rate_limiting.htm)
and for reducing the api calls from Hubspot end follow this link
(http://knowledge.hubspot.com/salesforce-integration-user-guide/how-to-adjust-your- salesforce-api-call-limit)
If you go over you're API call quota, Salesforce will send you an automated email letting you know of the overage.
The usage limit for the lowest edition of Salesforce is 15,000. If you're currently at 8k/day, I wouldn't worry yet.

Resources