Retrieving google analytics data with Tibco BW - google-analytics

I would like to extract data with google analytics api to tibco Business works. But i am not sure what the best pratice would be. First i thought about using java code for requests and responses. I have been looking at this tutorial.
https://developers.google.com/analytics/solutions/articles/hello-analytics-api
But now i am not sure if that is the best idea. Would it be better or even possible to do with Tibco:s http-palettes? Can i autenticate i user then? I would appreciate if someone could point me in the right direction.

Yes, you can use the BW HTTP Activities to integrate with the Google Analytics' RESTful API. However, to make things easier, you might want to consider using the BW Plugin for REST and JSON, which will take care of the JSON parsing and OAUTH implementation for you.
Otherwise, the easiest option is to just use the Google's Java Client Library and BW's Java Activities

Related

Is there an efficient way to implement an interceptor for http requests on SwiftUI?

Looking for an efficient way to implement interceptors in SwiftUI for any HTTP requests made on my app. The App uses JWT's to authenticate and fetch users specific data. As such I want to simplify token management and refresh using an interceptor. Have seen this be done in angular and was wondering if there is a SwiftUI framework or methedology to simplify the implementation.
Thanks!
I have looked into using Alamofire, however the framework looks outdated and I was unsure if it was still valid to use in a production setting.
Overall its been fairly difficult to find up to date resources in regards to this topic which has made it hard to experiment between different solutions.

Does Evernote Use HTTP to Make Calls to its API?

I am creating a client program that calls various APIs, one of which is the Evernote API, through purely HTTP calls, without the use of any SDKs provided by Evernote. I realize that this makes my life harder, but it makes the lives of the users of my product much easier.
So far I have been able to authenticate with oauth 1.0 to the Evernote server. However, it's not immediately clear how to make the HTTP call after I have the oauth_token.
Where is the endpoint to make API calls to create a note on an oauth-authenticated Evernote user account? What are the url parameters for such a call? Or, what are the requirements to include in such an HTTP request?
Does Evernote use HTTP to make such calls anyway? If not, what do they use?
Do I have to format the note in XML format, or does it accept JSON as well?
Evernote does not have a RESTful API. According to the CTO, it's due to a requirement to shuttle very large amounts of data and HTTP is not efficient. There is a project on github aiming to implement a RESTful API for Evernote.
https://github.com/ttddyy/evernote-rest-webapp
CTO's Reasoning:
http://blog.programmableweb.com/2013/10/03/is-evernotes-restless-api-approach-a-model-for-other-api-designs/
I haven't used Evernote in years and never used the API.
Evernote uses thrift which can be a bit tricky to deal with. This choice is explained in this blog post. I really advise you to use the SDK as it hides all the thrift complexity.
As mentioned above, a rest wrapper is available on github. It seems very cool but it's new and not official. Use it at your own risk.

What is the difference between Core Reporting API and the new Real-Time Reporting API?

Real-Time API
Core Reporting API
Hey guys,
Would you mind explaining the difference between these? How would I actually use the new API to build a realtime dashboard?
To anwser your first question:
Real-Time API lets you query information about whats happening on your sight right this minute. But Dimensions and metrics you can select from this API is limited. https://developers.google.com/analytics/devguides/reporting/realtime/dimsmets/
Core Reporting API the data is a bit older if my memory servies it takes them up to 4 hours to process hits and store them for use with the Core reporting api. But after processing there are a lot more dimensions and metrics available to you. https://developers.google.com/analytics/devguides/reporting/core/dimsmets
Without knowing what language you are planing to use or how you are going to impliment its a bit hard to anwser your second question. But you use the Real-Time API the same as you would use the Core-Reporting API.

How to use a SOAP API in ASP.NET?

I've trying to use the API for CapsuleCRM...
http://capsulecrm.com/help/page/api_gettingstarted
I've been reading some articles on SOAP in asp.net and I just don't get it. Most of them seem to be ablut creating a web service, not using it and none of them seem to explain how to use basic HTTP authentication.
I have got as far as constructing the XML i want to send to the API but I could really do with seeing some example code which makes an http call using http authentication to a SOAP API.
Maybe I'm just searching for the wrong thing but I've drawn a blank so far. Can anybody show me how?
Jon
Actually, the interface in question is REST - not SOAP.....
Check out the WCF REST Developer Center for a great intro on how to do REST based calls to REST based API's like this one. Lots of articles, lots of screencasts showing how to do things, from consuming the simplest service to more advanced topics.
Highly recommended!
See a comparison of REST vs SOAP for a few insights.

Geolocation web service recommendations

Does anyone have any recommendations on geolocation web services (preferably free!)?
Planning on using it in an asp.net app, I'd heard Google might have something.
We use the Google Maps API and it's very straightforward to use. It takes some figuring out to begin with, but we were up and running using the geocoding portion in less than a day.
MaxMind is not free, but their SaaS (web service) offering is VERY reasonably priced.
I am a happy user of geocoder.us.
I'm fairly sure you are not allowed to cache google data either.
Source
you must not (nor may you permit anyone else to):
10.3 pre-fetch, cache, or store any Content, except that you may store limited amounts of Content for the purpose of improving the performance of your Maps API Implementation if you do so temporarily, securely, and in a manner that does not permit use of the Content outside of the Service;
So saving the geocoded data is probably a bit of a no-no.
However-
I have not checked but highly doubt Open Street Map have the same restrictions.
Hope that helps
We ended up using these guys in the end - dead simple HTTP API:
http://www.maxmind.com/app/web_services_city_usage

Resources