I am a ruby on rails newbie and like to get some data from the google analytics api with the garb gem.
But I struggle at the very beginning. Does anyone have a little sample app to retrieve some data that I can use as a starting point?
KR, Fabian
you can refer following links for garb
http://geekospace.com/working-with-garb-a-rails-gem-for-google-analytics/
http://viget.com/extend/introducing-garb-access-the-google-analytics-data-export-api-with-ruby
http://www.tweetegy.com/2010/06/using-google-analytics-api-in-a-ruby-on-rails-project/
Related
I'm building an app for a client. The client want to be able to display street map with its location on the contact page.
I've never used maps in a web app before and I've been googling around.
there are so many options to use and I´m not sure which one to use.... this is just for displaying the streetmap, with a pin or something at the address, nothing too fancy.
should I use geokit-rails?
or rubygeocoder?
or Google Maps API?
or is there something else I can use?
what do you guys/girls recommend?
any suggestions would be great
thanks in advance
D
I use gem geocoder which I like. Just gem install geocoder. It supports geocoding and reverse geocoding, distance queries, rails 3-5. It is on github and website is here
Try gmaps4rails gem.
It is simple and easy to intregrate in rails application.
Check the Docs here.
I would like to apologize first if the question is a total newbie question, but I really am a total newbie on this.
I'm a student and I recently have joined a project that involves studying (mining) tweets. The project head asked me to use the Twitter API to extract tweets. What exactly is Twitter API and how can I use it? What do I need to know to start using it?
Twitter allows you to interact with its data ie tweets & several attributes about tweets using Twitter APIs. You'd need to know a server side scripting language like php, python or ruby to make requests to twitter api and results would be in JSON format that can be easily read by your program.
A good starting point would be reading the official documentation at https://dev.twitter.com/ itself.
Throw you can use and show some functionality in your website
I have working Rails app with authorization from Google and view with documents from Google Docs. How can I make button 'Upload', which upload files from computer to Google Docs? Please help, write teachable code. Thank u.
For quick intro and for all the others, check out this documentation that might help: http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html
This guide explains how to use Ruby on Rails with the Google Data APIs, including samples for the Documents List API:
http://code.google.com/apis/gdata/articles/gdata_on_rails.html
I wanted to integrate GSA with Rails. But the web proved to be un-helpful. Anybody knows any step-by-step tutorial.
First, you have to call the GSA with the search query. The reference informations for generating the GET-request is here: http://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#SubmittingaSearchRequest
Then you will receive a xml response from the GSA with all needed information inside. The reference for the xml nodes are here (Look better at a xml response from your GSA and get additional informations in my link): http://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#results_xml_tags
Last but not least, you have to parse the informations within the xml and generate your custom frontend.
I hope that will help you. It isn't really complicated.
Define "integrate" closer. The most things are language independent and have nothing to do with Rails/Java/.Net or whatever
Try using the gem rails-gsa this will help you a lot in integrating the Google Search Appliance with your rails Application.
Check out the documentation on github https://github.com/rohit9889/rails-gsa
There is code to use Facebooker gem (which uses the old Facebook REST API). Does someone have experience how to convert those code to
using Facebooker2, which uses the new Facebook Graph API?
For example, Facebooker has Facebooker::Session and Facebooker::User and they are both gone in Facebooker2.
I can't find too much docs on the two sets of API.
I've written an article about converting your Facebooker app to Facebooker2. This also means that should change from FBML to iFrame if you haven't already:
http://www.clickonchris.com/2010/11/facebooker-converting-from-fbml-to-iframe/