I want to use the Google Analytics API to show analytics data in our CMS.
As every website runs the CMS under their own domain like domain.com/cms I do not want to use webapplication API access. I want to use a API Service Accounts, so there is no domain check using the API, in stead it uses a client id (different from webapplication access) and a private key.
So far, so good. I set up the connection with the API and I can read google analytics data.
But I would like to show some charts.
Easy Dashboard Javascript Library is very handy, but it uses webapplication API access, so it checks the URL where it is called from. And I don't want this. Is there a way to simply create charts (with this library or another), and using Service Account API access?
You can get the data from your Google Analytics Service Account and use the data to create charts using the many libraries available using javascript or jquery.
http://www.1stwebdesigner.com/css/top-jquery-chart-libraries-interactive-charts/
Related
I have created a canvas power app. I am trying to use the paypal API: https://developer.paypal.com/docs/subscriptions/integrate/ ,which gives you html to embed into your code. I know Power Apps is a no-code platform, but are you be able to connect a Canvas app to a Web Resource with html?
you cannot use javascript directly in your canvas app but there is something called PowerApps component framework. you can use PCF to have coded component in your canvas app.
There is an pcf gallery as well which contains community crated pcf controls which could be directly used.
In addition, it is not required if you want to consume 3rd party api that you use javascript. There is something called custom connectors/ or out of box connectores in power automate, you can call power automate (flows) from your canavas app and consume output/results from your flow.
Take a look at this connector article
I would like to use the Adobe Embed API to display PDF in an enterprise internal application. But I'm wondering if the PDF itself is sent to the Adobe servers?
Since the documents are strictly confidential, that would forbid me to use this API.
Adobe PDF Embed API does not upload your PDF document to Adobe servers. There is a whitepaper here that details that:
https://www.adobe.com/content/dam/cc/en/security/pdfs/AdobeDocumentServices_SecurityOverview.pdf
Here is an excerpt:
API Authentication PDF Embed API is a client-side JavaScript- and
WASM-based library and does not make any calls to cloud-based
services. There are only three purposes for which it makes network
calls:
At the time of loading, it calls into a service that validates the
client.
If given an Adobe Analytics report suite ID by the PDF Embed API integrator, it logs event data for out-of-the-box analytics and a
pre-configured analytics dashboard.
It logs anonymous usage data in Adobe Analytics.
Is it possible to pull components, Snapshots and Environment from Dashboard of UrbanCode into my Web application dropdown list using Rest APi. Thanks in Advance..
If you want the contents of the Dashboard view, which shows currently running processes, you can use the (internal, unsupported) REST API. By opening up the developer tools in your browser or a plugin such as Firebug and then loading the dashboard page, you can see the REST requests that create the page. The request that gets the current activity is something like this:
https://ucd.example.com:8443/rest/workflow/currentActivity?rowsPerPage=10000&pageNumber=1&orderField=startDate&sortType=desc
So you can use that GET call to rest/workflow/currentActivity to get the same sort of info that's on the dashboard. Is that what you're asking for?
I have hosted my REST services on API management and consuming those in the Azure Web app service which consists of only HTML pages, javascript files and CSS files.
I would like to know how to restrict accessing the REST endpoints of the API management only from the web app without Azure AD and OAuth setup.
Client side application sources are by design available in clear text to anyone using it. Any user can open developer tools in browser and look at code you've written to make app work. So even if you secure your REST API with some secret and use it in app code to talk to that REST API anyone in the world will be able to take that secret our of the app and call your REST API directly, and you would have no way to distinguish their calls from calls made by your app.
OAuth and AAD would work to a certain extent but even they allow you to authenticate user, not the app. Same user can easily trace calls made by your app to REST API and reproduce them in any other app, and you again would have to way of figuring that out.
I think your best bet is to throttle calls made by a certain user identifying it any way you want (even if by IP address).
You can use Certificate authentication from web app to api management. The ssl certficate thumbprint on you web app you can validate in api management policy.
I have a Google API console premier account, and I'm using the places service for an application that has two parts, web app and mobile app.
It seems that Google API distinguishes between server and browser apps. So for each category I have to generate keys specifically for it.
The mobile app is a native iPhone App, that uses the Google Places Web Services XML API for a simple auto complete function.
The question is in which category does mobile apps fall in?
Browser Apps
Server Apps
And any resources of how to use them?, does the Google JavaScript API V3 still requires an API Key for the premium users? Google documentation about this subject does not have enough information.
There are two different interactive types of Mobile Apps that use Google Maps:
ones that use the Maps Javascript API v3 (either directly or embedded in a Native Application)
ones that use Native Google Maps APIs (currently available for Android and iPhone)
For more on that you can have a look at:
http://code.google.com/apis/maps/articles/mobile_overview_v3.html
Ones that use the Maps JS v3 are Browser Apps, the Native Apps are neither. They have their own TOS and quota system, like the one for iPhone and the one for Android.
About Google Maps JS API v3. It an be loaded :
without any key
with an API console key, which will allow you to track your usage (this was introduced recently)
with Maps Premier client id (gme-) if you are a Maps API Premier customer
The XML web service for places API should be used only as a server side solution. This is because you can imagine that a user might steal your key from the source of your iPhone app (by sniffing on the traffic) and use it.
The safe way out is to use a proxy server. You would then register an App Key for server apps (with IP locking for your proxy server) and then make calls to the Places API from this proxy.
Another option would be to use UIWebView on the iPhone side with JS Maps API v3 and Places library on the Google side. You would then fall in "ones that use the Maps Javascript API v3 in a Native Application" category.
You could then use any of the 3 options to load JS Maps API that are mentioned above.
I had to cut away some links, since I am not able to paste more than two, but I hope that helps anyway
Unless you have strong reasons against it, the "ones that use the Maps Javascript API v3 in a Native Application" category is the best option. There's a nice talk from Google I/O 2010 about it: http://www.google.com/events/io/2010/sessions/map-once-map-anywhere-geospatial-apps.html