How to access Google calendar events in Unity3D? - firebase

I'm building a VR/AR calendar in Unity, and looking for the easiest way to read calendar event data from Google and Facebook (let's just start with Google). I've tried using the Google Calendar C# API, but Unity doesn't support .NET 4.0 or above (Google Calendar API only works with .NET 4.0 and above). Unity does have a .NET 4.6 Experimental version, but in Visual Studio after installing Google.Apis.Auth etc and other packages needed in PuTTY package manager the C# code would still not recognize the imported packages below:
using Google.Apis.Auth.OAuth2;
using Google.Apis.Calendar.v3;
using Google.Apis.Calendar.v3.Data;
using Google.Apis.Services;
using Google.Apis.Util.Store;
So next I tried a different approach: I tried installing the Unity Firebase plugin. It only works for iOS and Android for now, so I started a new project just to start clean. There are only a few YouTube videos about Firebase in Unity in general, and they don't get into Google Auth, just Google Analytics and regular plain email/password, so it's been trial and error for a few weeks now. I feel like this guy, except I'm not working with a FitBit, and I don't have it figured out. Does anybody have insight on how to go about this?
More important question: If I were to get Google Auth working through Firebase in Unity, how would I go about pulling the Google Calendar event data associated with that account? Would that be back through the C# script?
Is there another way all together that I'm probably missing? Thanks for any help!

To clarify your question. The Google Calendar API supports any language that can send HTTP POST and HTTP Gets. The Google .net client library currently requires a min of .net 4.5 to run. There is currently no support in the library for unity there is an issue here which states that we will probably not support it.
That being said you can still add google calendar to your project you will just have to code your own library for it.

Related

Can I use Firebase Analytic Web SDK for a Cordova App?

I'm developing a cross platform app: Web, PWA, iOS (Cordova) & Android (Cordova).
I use the same code base, and Firestore & Auth are working well on all the platforms using only the Web SDK.
However, when I add the Firebase Analytic plugin, it works as expected on the Web / PWA, but the iOS / Android apps do not seem to send back anything.
Is there a way to make Analytic works using only the Web SDK? Or is it mandatory to use a Cordova Plugin?
Thank you in advance for your help.
Note: I'm using Framework7 & VueJS
Edit 1
It seems that cordova is officially supported for analytic with the web SDK.
So the question becomes: do you have any idea why the implementation is working for "normal" app and break when on cordova?
https://firebase.google.com/support/guides/environments_js-sdk#other_environments
Edit 2
Now that I know that it should work, I'm trying harder to find solutions.
First, I observed in the Safari Console that on y web app, I can observe calls to https://www.google-analytics.com/g/collect every time I'm logging an event.
I do not observe those calls on the Cordova app, which is most probably the reason why I do not receive anything in my Firebase Analytics.
The question becomes: why are those call not made in cordova, considering the js the same?
Edit 3
Ok, I think I found the explanation:
Google Analytics from a file:// url
The question becomes: since Analytic is loaded automatically with firebase, how can I make this configuration?
Ideally, I would like a way to set the client id using a hash of my user uuid (as I said in my post, I'm using Firebase Auth).
How can I dynamically change the value each time a user connect to the app? Can Firebase directly take care of this?

How to display private Google Calendar events on my localhost start page without a webserver?

I'm practicing HTML/CSS/JS using localhost as a browser start page and I'd like to display the next 24 hours of my events from my Google Calendar. However, it seems so far that a webserver (I used Python) needs to be running first. Is there a simple way to just read these events via JavaScript? Also, my calendar is not public. I've checked all the documentation I could find and haven't found any solution.
I'm still learning, so I appreciate any help/suggestions you can give. Thanks!
If you already have a python web server running for your application, you just have to authorize it to grab data on your behalf.
I recommend you go thru the Python Quickstart tutorial to learn how to authenticate and talk with the Google APIs.
Once you have that setup and running, you can then integrate those methods to your webserver logic.
This will depend on which library or framework you are using for your application.
Hope this helps!

integrate Firebase with cocos2dx

I have one game built using cocos2dx game engine, and I want to use Firebase features (Authentication using Google and Facebook), can you help me to select the best way to integrate with Firebase.
I tried using C++ sdk, but I had many issues. Then I tried to integrate it using Java code in the Android version, and it was working, but in the iOS version, I have issues.
Please your help to do it in iOS or use C++ sdk
Thanks

Salesforce integration(Enterprise API) in windows phone 8

I have done Salesforce integration in .Net but unable to do in windows phone 8. Actually, in .Net we download enterprise API and add it using Add Web Service reference and we get intellisence. Here I there is no option for this. I tried Add Service reference but it did not work. I also tried PCL but still stuck. Please help.
I was also stuck in this problem but I done this through web2Lead. I mean you can integarte this through post data. This is the easy way to do your task done.

How to get Tweets using Twitterizer in asp.net?

I am using twitterizer2 to login twitter using Asp.net.I am able to login using twitterizer,but unable to get the tweets from my timeline which are tweeted by me and othres too.
Twitterizer is not maintained anymore and not compatible with Twitter API 1.1.
Details about Twitter API 1.1: blog
From Official page:
Will applications using Twitterizer stop working?
Not right away, no. I have no power to stop the code or binaries that
are already in use from working, nor would I want to. However, the
current version of Twitterizer uses version 1.0 of the Twitter API
which is scheduled for death in March 2013. At that time, I cannot
speak to any functionality.
What am I supposed to do now?
As I see it, you have three options: jump to a new library, make
Twitterizer your own, or roll your own.
Twitterizer source code will remain available in its current state. I
encourage you to download the source and make it your own.
If you'd rather not take that on, there are a couple of other
fantastic libraries. For example: Linq2Twitter and TweetSharp
As said above you need to find a new library compatible with Twitter API 1.1, as Linq2Twitter or TweetSharp.

Resources