Calling Microsoft Graph from Google Appengine Python - python-2.7

I need to call the Microsoft Graph from a Google Appengine Python application, this requires oAuth2 authentication.
Google provide the Google API Client Libraries for calling their own REST api's (such as Calendar / Drive / Youtube etc) - is it possible to use the library to call other non Google REST API's such as Microsoft Graph?
If not has anyone used another library to do so from Appengine Python. You can not use the Microsoft supplied python SDK as this requires python version 3+ and Appengine only supports 2.7.
Thanks in advance,
Ian

The authorization token you receive from Google will only work with their APIs. You'll need a separate token for use with Graph. For this you can use ADAL library.
Since you need to stick with 2.7, you'll need issue REST directly. The existing SDK (as you noted) requires py3. You may want to take a look at restclient for this. Its been a while since I've had to use this lib but I recall it really simplified calling REST endpoints.

Related

How to list all available versions of a Google API?

I'm trying to use a Google API for a project, but I have a problem ;
Sometimes, there are versions like v1beta, v4.3, v2alpha2.5 etc, guessable but I don't want to bruteforce it to find the versions.
So I was wondering, how to list all available versions of an API without using the endpoint https://discovery.googleapis.com/discovery/v1/apis ?
Like a parameter for all individual APIs, would be cool to have a <api>.googleapis.com/$discovery/rest/versions
Thank you in advance.
I have been working with Google and Google Cloud APIs for more than a decade. There is no shortcut that I know of. Google does not publicize all API versions.
Knowing all available API versions will not do you any good in most cases. Some API versions require prior approval (whitelisting) to use them. Others might be in alpha status and should not be used except in certain situations. Some API versions require a relationship with the PM to obtain details. Some API versions require an NDA for either the API, the service, or both.
For the APIs that you require, subscribe to or follow the blogs and release notes.
Unless you have a specific requirement, only use the latest production (GA) version. GA versions have published documentation detailing the interface, methods, and parameters.

Migration path for Fql.multiquery

I'm new to Facebook development. I'm working on migrating an existing app in accordance to the Graph API upgrade guide. I'm looking for guidance around calls such as api.facebook.com/method/Fql.multiquery.
My question is: does this type of API need to be upgraded as well, or does it only apply to graph.facebook.com calls? I want to ensure that api.facebook.com/method/Fql.multiquery calls will still work after 4/30/15.
You may want to take a look at the Batch Requests of the Graph API. You can also specify dependencies between the requests.
Calls to http://api.facebook.com/method/Fql.multiquery will no longer work. The REST API is long deprecated anyway.
As #luschn said, you have to migrate to the Graph APIs batch requests, and use the /fql endpoint. You can only use FQL if you have a v2.0 app, and not higher.

Using the Facebook API from Mono

I am developing a mobile application with MonoTouch and Mono for Android, and possibly Win8. I need to access the Facebook API, and I would prefer to do that in C# given the above mentioned platforms.
I know that I can make HTTP requests towards the Facebook API myself, but I am wondering if there are any libraries that wraps these for me and give me an object model to program against. I have done some searching around but have mostly come across libraries that are no longer supported or shut down.
Does anyone have recent experience with my problem and can give recommendations?
This should help you get started with the facebook integration using Mono for Android.
I am not sure what limitations (if any) there are with regard to using these libraries on a mobile device, but there are some Facebook SDK's for C#.
Here is one -
facebook-csharp-sdk
I have decided to follow a native approach to get as close to a seamless integration as I can get.
For iOS that means https://github.com/mono/monotouch-bindings/tree/master/facebook which are bindings to the official Objective-C Facebook SDK. I have done login so far and that was very easy. With the access token in place I can make future Facebook API calls from a library like the above or I can create a Mono class library with a service that wraps HTTP calls. This service can then be reused in any C# project (such as Mono for Android).
My plan is to do something similar for Android. I have seen people compile the java library in MonoDevelop as an AndroidResource and then create a wrapper which calls into the Java.

Using box.net, dropbox, (OR ANY cloud storage) with a C++ application

How do you use cloud storage such as Dropbox in your C++ Apllication ? I've checked out their API and they only have Java, Python, and Ruby options. If you cant use dropbox with a c++ app, is therte any cloud storage provider that has an API for C++.
The drop box APIs seem to be wrappers for a http interface.
So if you want to hit them up from C++ you can use a http supporting library like libcurl to access stuff using the REST api
Droper is an open source C++/Qt Dropbox client that I have recently wrote. It can be compiled for Windows and Linux, but the GUI is optimized for Symbian mobile phones. Check it out.
I've found several differnet APIs on their website, righ under the place you propably found the ruby / pathon stuff..
http://sharpbox.codeplex.com/
http://github.com/dkarzon/DropNet
Not sure if this is, wha you were looking for..

How to programatically create a Facebook application via JS SDK or Open Graph API? (createApplication)

I know there are currently two methods that can be used to do this, documented (poorly) on Facebook's Developer site:
The old (depreciated) JavaScript SDK FB.Connect.createApplication
A new FBJS method Facebook.createApplication (only for use on Canvas pages)
The problem is that I not using a Canvas app that runs FBJS, and I am not using the OLD JS SKD. I am trying to do this on a regular old PHP website that uses the current JavaScript SDK and the PHP SDK.
I am doing the usual Open Graph API calls and such with the current SDK, so I understand the basics, I'm just not sure how to proceed to use the OLD SDK, or if (fingers crossed) I even really have to?
So, is there a way to make new Facebook Apps with the current JS SDK? Or with a server side PHP SDK call to the Graph?
And if not, how do I call the old SDK to do this?
Thanks
UPDATE: You still can't do this, but there is an official bug in the Facebook tracker about it: http://developers.facebook.com/bugs/295627350461318
There isn't outside of the OLD SDK as you indicated. It's been removed (what Facebook calls "deprecated"). I put in a feature request recently for them to add it back into the API:
Me:
The Facebook Developer tool is
considerably lacking in features. We'd
like to be able to create a third
party application that adds layers of
functionality to the developer
application, but we'd need to be able
to create and administer applications
via the Graph API.
The Graph API supports querying for
information on existing applications.
To create, administer or delete
applications developers must go to the
Developer Application.
Them:
------- Comment #1 From Jeff Bowen 2010-12-07 16:59:12 (-) [reply]
------- Thanks for the request. We’ll track this on our wishlist