CakePHP 1.3: Integrating Google Analytics PHP Interface (GAPI) with CakePHP - cakephp

I am attempting to use the following GAPI class to access my Google Analytics for information regarding pageviews, etc.
http://code.google.com/p/gapi-google-analytics-php-interface/
However, I have not been able to set it up successfully as the integrations that cake with this class is not as detailed as I would like to see it.
Can anyone help me out setting this up?

Related

Gmail API Tutorial only returns Labels

I've recently been trying to implement the Javascript quick-start guide on the official Google Dev page, which can be found here:
https://developers.google.com/gmail/api/quickstart/js
The example is meant to read your Gmail inbox and display the last 10 emails on your html page. I've gone through the example but after I grant permissions in my web browser, I only see a list of the "labels" present in my inbox with no emails/email content. I have created a new custom label in my Gmail inbox and this new label is view-able on my html page, which to me suggests that my connection to the Gmail API is fine.
However, I have not used Python like the example suggests. My html file is currently being hosted on 000WebHost so I figured I don't need to use Python. The reason I came to this conclusion is because the tutorial explains that Python is used to host a web server, as I'm using 000WebHost I think I don't need to host this web server.
This could be my issue if I've misunderstood what Python is really needed for here?
Other than that, I'm wondering if there are any other glaringly obvious issues to someone experienced with the gmail API?
Any advice would be appreciated.

Integration of analytics code to Google AMP project

I am looking forward to integrate my analytics URL to AMP page.
As i see on AMP analytics page we can provide our URL which will collect data but this URL needs to be integrated and approved by Google.
https://www.ampproject.org/docs/reference/components/ads/amp-analytics
I could not find any related document for this process.
Could you please provide me details for same.
Thanks
Viren
Try to check this tutorial if this is the one that you need. This tutorial can help you to implement Google Analytics using AMP. It has sample code that you can copy to know how to do it.
For more information, you can check this another tutorial about Using Google Analytics for Accelerated Mobile Pages (AMP).
This tutorial has a guide/steps on how to set up AMP with Google Analytics

Google Calendar Api Documentation better than the official V3

Please I want to create Event in Google Calendar API but the documentation official is BAD I cant use it .. And someone here who can help me please!! Sorry with my english but I speak spanish!
I agree...
This helps a bit: Google Calendar Events
Depending on the process you are using, there are few examples for using asp.net and the service account option. I successfully created events via service account with granting domain-wide access. With this you just need to create an app, then service account for the app and follow the domain wide delegation steps on the google documentation pages. This option is great if you have an app that needs to create events without having to authenticate the user.
For working code and more info you can see what I used at-
Google API Calender v3 Event Insert via Service Account using Asp.Net MVC
What is "bad" about the documentation? (Don't just complain; provide actionable feedback.) In the v3 docs, check out the reference section on creating events. There is even sample code in Java, Python, PHP, and Ruby to help get you started just below the reference. In addition, below the sample code is the APIs Explorer where you can issue requests with appropriate payload to the API and see the HTTP response to ensure you're calling the API correctly and receiving the data you requested. If there's any additional way for us to improve the docs, please let us know!
UPDATE (Sep 2015): I created a blogpost and video that walks through some pseudocode (well, it's Python) for creating events. There are examples in most other languages too.

CakePHP Advanced Auth and Session Handling

I'm looking for an advanced CakePHP authentification component or plugin. I've used the core auth plugin and it's fine. I'm however looking for something a bit more advanced that allow to keep track of multiple sessions for the same user. Main features/reasons would be: Ability for user to see active sessions and allow the user to end active sessions. This method is used by facebook and other large sites.
If you do not know of an Auth component that does what I mentioned above do you know of any Auth component that does more than CakePHP's core/built-in component?
I searched the CakePHP bakery section and Googled to find an Auth component but didn't find any.
I don't know if there is something built-in for Auth in CakePHP with that complexity, try this plugin
https://github.com/Theaxiom/SuperAuth
Or check in the official github repository from CakeDC team https://github.com/CakeDC
also try to find something in http://plugins.cakephp.org/
By the way, maybe you can ask directly to core guys on irc ;) go to http://webchat.freenode.net/ and channel cakephp.

Grails App Engine Authentication

How do I setup Account Registration, Login, etc in Grails when developing for the Google App Engine? Normally I would use the Acegi plugin but I've read that it doesn't work with Google App Engine.
For reference, I'm using the Grails app-engine and gorm-jpa plugins.
Google App Engine allows you to manage users through their Google Accounts Java API. The page provides example codes which you can easily implement with Groovy.
Hope it helps.
You should take a look at this patch: http://jira.codehaus.org/browse/GRAILSPLUGINS-1233. I haven't used it yet but might be what you are after.
In my opinion, it is essential to create custom authentication instead of using Google Account API to create any viable application run on GAE.
So, I created my own solution to tackle this problem which you may interested to have a look at URL:
http://grailsfuse.vobject.com/
(You will hit http 500 error for first request, please wait for 30 seconds and refresh)
The missing part is the self-registration page and remember me feature. Please contact us (hyperlink located below the page of URL above) if you are still interested.
Wish to heard from you soon!

Resources