Skip to main content

Posts

Showing posts with the label web services

Using Google Analytics with R ( RGoogle Analytics)

Steps 1. Go to https://console.developers.google.com 2.  Create a new Project 3. Go to  API and select Analytics API  (used in this e.g.) 4. Go to Consent Screen and fill the appropriate product name and save 5. Go to credentials and creat a new client ID Make sure u enter the website URL properly 6. Now run the following R script R Script require(RGoogleAnalytics) client.id="xxxxxxxxxxxxxxxxxxx" client.secret="xxxxxxxxxxxx" token <- auth="" client.id="" client.secret="" p="">ValidateToken(token) query.list <- init="" p="" start.date="2014-01-01">                   end.date = "2014-02-10",                    dimensions="ga:date,ga:pagePath,ga:hour,ga:medium",                    metrics = "ga:sessions,ga:pageviews",                    max.results=500,                    sort="-ga:date",                    filters="ga:mediu

Fundamental of Web Services

FUNDAMENTAL OF WEB SERVICES WEB SERVICES:- A   Web service   is a method of interaction between two devices over the  WWW . It is a software tool provided on internet which helps us to create client-server service. It is a software system designed to support interoperability with various machine interaction over a network. The web service replies in a language called WSDL (Web Service Description Language).    Some of its features are:- They are application components They  communicate with open protocols They  are  self-describing It can be used by various applications The basis for web services are HTTP and XML Working of web services The client sends a request to the server  The Request is  encoded in XML format  The Function (GET, POST…)is inserted in the file  The server receives and decodes the file  The received function is executed  A new XML file is encoded and is sent back to the client. WSDL WSDL is an acronym