Create New View for Google Analytics with Ruby - ruby

I was wondering how to create a new view for google analytics with ruby using the current 0.8.6 version of the library or otherwise? This would be after I have gotten the appropriate access token.
The specific call is here: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/profiles/insert
Any tips would be very much appreciated!

Write operations in the Management API (e.g. create, update, delete, patch) for Web Property, View (Profile), and Goal resources is currently available as a developer preview in limited beta. If you're interested in using these features, request access to the beta
It can take a while to get access it took me over a month you might want to start there first. While you are waiting I suggest you look at the normal ruby google analytics core reporting API examples once you are familiar with those you should be able to get the insert views working.

Related

Go YouTube API: What use instead of liveBroadcasts.control method to display slate?

Re golang YouTube API, I would like to know what calls to perform to make a slate image appear in the middle of a livestream. Reading the API documentation here, it's suggested that the "control" operation is used to achieve this, however, this operation is not supported by the API in the latest version. I did find this functionality in a prior version (v0.3.2); why would this have been removed and what is the replacement ?
Cheers,
Saxon
The API behavior you're experiencing is documented officially, as per this excerpt from the official specification of the liveBroadcasts.control API endpoint:
Note: The liveBroadcasts.control method has been deprecated and will stop working on or after 1 October 2020. After that date, all calls to this method will return a forbidden (403) error, and the method will later be completely removed.
Clients can still implement their own slating by adding an overlay to the video sent to YouTube’s ingestion servers. See deprecation announcement.
There's nothing you can do about that, but only to file a feature request directly to Google in the attempt to make the company reinstate the feature that it retracted from the current API.
In my opinion (which is based on the experience of several years of monitoring the SO tags youtube-api, youtube-data-api and youtube-livestreaming-api), waiting for Google to respond to you here on SO is waste of time. Just do what I already recommended you to do in my comments posted under your question above: reach out directly to Google (through the company's official issue tracker site) for to obtain official accounts from the company's staff.

Advantages of using APIs wrapped with .NET in Xamarin

Around a year ago I made an iOS application that finds restaurants near your location of any type and displays information about them. I made a web service call using the FourSquare api to get all the data which was returned in json format and then I parsed it and displayed the information on the UI of the app. Now I want to make an android application using Xamarin.Android since I am learning working with Xamarin studios and C#. When I make a Xamarin.Android application and go to packages then add packages I see there is a Foursquare api package that has a .NET wrapper around it. Here is the website url:
https://www.nuget.org/packages/Foursquare.Api/
So my question is how does this work? Does adding this package mean I don't have to make a web serivce call anymore, instead all the data is stored inside this package and I just have to get all the data the same way I get information from a local database? What are the advantages of using this package instead of just making a web service call to Foursquare?
Think of it this way:
This Foursquare API is simply a .NET wrapper of the web service that you want to use. Thus, somebody has gone ahead and done all of the hard work for you so you can simply consume the returned data in your applications.
What does this mean for you?
Well it means that you don't have to write any REST consumption code and you can focus more on the actual application and any business logic that you need to implement based on the Foursquare objects.
To not confuse any further, this data would come the same way as if you wrote your own web service to access the data from the Foursquare API endpoint.
Advantages:
Already written for you
You don't need to know your way around their REST API
Usually follows best practices per language so it's easy to consume (Objects created, methods, etc)
Disadvantages:
REST endpoint might be updated and not reflect in the package until it's updated
Any bugs/issues in the framework can be hard to workaround if the project is not open source
Could be a lack of documentation on how to use the wrapper

How can I create an account on Parse.com ? There is no signup button?

I cannot find any signup button.
I gave right to Parse to access my Facebook and GitHub account to login with that but nothing happens and it keeps going back to the main page.
Any suggestion ?
Yes, you cannot currently setup a new account with Parse.com, because of some platform issues.
They have however open source a majority of the technology behind the platform. Check https://github.com/ParsePlatform/parse-server to setup your self-hosted instance of the parse-server.
You can also check out http://firebase.com for similar service.
You will not be able to create anymore. Parse is moving down.
But you can keep using Parse. At the same time Parse announced it will be shutdown, it also announced the Parse Server open source project. Parse Server community is growing and it is becoming even better than original Parse. In a short time, Parse Server will become the best framework for backend and API development.
My recommendation to you is to start using a Parse Hosting provider. Using this kind of solution you will use same Parse APIs and features. It will not require you learn other technology nor rewrite any frontend code.
You can find some options in parse server repository: https://github.com/ParsePlatform/parse-server#parse-server-sample-application
For a full disclaimer, I am co-founder of https://www.back4app.com
Try logging in using their login page: https://www.parse.com/login
Parse will be fully retired after a year-long period ending on January 28, 2017.
You cannot sign up or create new accounts, but you can use Parse Server in your own infrastructure.

Can Facebook's Graph API be used without using any SDK?

Can the full functionality of the Facebook Graph API be used with HTTP Requests, rather than using any of the SDK's? I've been able to use a GET requests to return public data; I've been able to use a POST request to make a post with an access token retrieved from Facebooks Graph API Explorer, but I'm not sure if Login, getting Access Tokens and determining whether a user has given permissions, is possible without using one of the SDK's? I could spend the next 2 days using trial and error, and reading docs to try to find out, but I'd hate to waste a couple days going down a road to nowhere if someone can just give me the answer now.
Yes, absolutely you can create application for Facebook without using any SDK..
SDK is just a software development kit (SDK or "devkit") it's typically a set of software development tools that allows for the creation of applications for a certain software package,
Facebook SDK made your work much easier because they give you ready made functions to call Facebook API
like PHP sdk ,C# sdk.. etc
If you want to create application without using it .. then you have to request Facebook Graph API directly ..
For e.g you need to get page information using JS SDK ..you need to pass only name/id of the page
in JS SDK
FB.api('/cocacola', function(response) {
console.log(response);
});
but if you want to go without SDK, then you need to call http://graph.facebook.com/cocacola
now you need to parse JSON then retrieve data based on the language you're working on

Ruby: Fetch data from google analytics?

I want to gather google analytics data for daily/monthly report. All visitors, visitors for specific path and conversion rate. Setting for google analytics is already done (I think).
I searched ruby libraries, but many informations are out-of-dated and google api is sometimes update.
Now(2012-09-28) what library is popular? And How to get data? I searched ruby-toolbox, but both two libraries are still active?
Libralies
'garb'
https://github.com/vigetlabs/garb
'google-api-client'
http://code.google.com/p/google-api-ruby-client/
Purpose:
My first step: view data
My second step: edit data(Add note or notation)
thanks,
Google-Api-Client works fine, is an official client and is constantly updated, just check the commit logs and you will see. Note that this API is not for Google Analytics only but for any Google API that uses the Google Discovery API. You should try that.
Regardless of the client that you use make sure it's compatible with the latest version of the API. If it's built using the Google API Discovery service it's a plus because that means the client library will have support for new methods as soon as they are available. It's like an API for building API clients.
GARB on the other hand seems to be abandoned for a while and is probably missing out on several features that came recently.
Note that the Google Analytics API are currently read only. So no client library will support that since there's no API for writing annotations. There's a feature request for that though.

Resources