Can I use oauth 2.0 with flex? - actionscript-3

I want my flex mobile app to connect to the Google services, specifically the new Google Drive, to upload and download files. Is this possible using AS3 and Flash Builder? I believe oauth 2.0 is required for authenication. Can this be done with Action Script? I've looked around and only found oauth v1 libraries. Also, are there any APIs working with Google Drive that works with Flash Builder?
Thanks

yes
Actionscript 3 library for oAuth client implementations, for use in Flash, Flex and AIR.
http://code.google.com/p/oauth-as3/

I don't know if you are still interested with the Google Drive API, but i've just released a (REALLY) beta version of that. You can check here: http://code.google.com/p/google-drive-as3-api-client/ .
See the example in Wiki section and refer to the full example (for Flex) that you can find here: http://code.google.com/p/google-drive-as3-api-client/source/browse/trunk/src/AS3GoogleDriveAPI.mxml
Bye

Related

Which VIMEO API to use for our needs - web based help "tutorials"

We have a web based system that we are looking at replacing our existing "help system" from uploading flash videos directly to our website to instead "embedding" content we upload to our vimeo account. We have setup a vimeo pro account and these videos need to be "private" i.e. not accessible to the general public. Which API version should I use? And do you have any sample code in say PHP I could take a peek at with the functionality we are after
The Advanced and Simple API's will no longer receive new features, and soon you will not be able to create new apps for them.
Vimeo has moved towards a unified API, which you can read about at http://developer.vimeo.com/api. Make sure to use the api through api.vimeo.com, not vimeo.com/api/rest/v2.
Vimeo has an official PHP library, with some very basic examples that you can see at http://github.com/vimeo/vimeo.php

Adding Google Charts or Similar to Chrome Packaged App

I have a Chrome Packaged App that I want to be able to graph data for the user. I would ideally like to interface with something along the lines of the Charts/Visualization API, but I'm trying to find a solution that will work offline, possibly through integration with other apps or within my app specifically. Is there a way to insert a Google Chart or something very similar into my packaged app? Is there an API or feature I am unaware of that would make this feasible?
Unfortunately the Google Charts library cannot be downloaded for inclusion in a packaged app due to their terms and conditions:
Sorry; our terms of service do not allow you to download and save or host the google.load or google.visualization code.
- Google Charts FAQ
That said, there are many excellent Javascript libraries that are available for download which you could include with your packaged app and use as if they were included from a remote source.
This stack overflow question should help you decide between the various options. You should then download the Javascript files for the library you chose and place them within the folder of your packaged app and then use them like any local Javascript that you've written.

App built using Google Drive PHP SDK keeps redirecting to the same page

I'm following this guide to create a sample web app which implements the Google Drive PHP SDK.
When I access the URL, the app keeps redirecting to the same page in an infinite loop, so no content is shown actually. Any idea why this is happening? Is it due to some mistake I made in the config file?
The document says how to implement the sample app - called DrEdit - as a Google Chrome application. Can anyone tell me if it is possible to use the SDK for creating non-Google Chrome apps? Also, does anyone have any example implementation of the Google Drive SDK?
If you provide more information and code, we can debug your first issue.
Otherwise:
Yes, you can write apps for Drive that are not Chrome apps. Chrome Web Store is an optional distribution mechanism for the API. Your apps will work in any browser.
There are documented PHP snippets for every API method, e.g. https://developers.google.com/drive/v1/reference/files/get

google-drive-sdk : call google-drive-sdk

I am new using google scripts and drive-sdk.
I'd like to call the copy functionality of drive-sdk. When I try it, I get a message that says I need authentication.
Where can I find an example of how can I authenticate from a google script to authenticate de drive-sdk?
Thanks in advance.
Biagio
Have a look at the Google's Drive SDK docs regarding authentication.
https://developers.google.com/drive/quickstart-php is a good example in PHP. other languages they have quickstart examples for: Java, Python, .NET, Ruby, Javascript, Go, and Objective-C/iOS
First, view Google's information on authorising with the Drive API.
Then, choose which language you wish to use, I would reccomend JavaScript (or Node.js) if you want to play around or are making a web app.
If you wish, you can view a simplified explanation of the OAuth2.0 flow.
To clarify, the basic steps you can use to get going in JavaScript (as an example) are:
View this official Google getting started page
Set up the Drive API in the Google Developers Console
Copy the code from the getting started page
Ensure you place your ClientID from the Google Developer console into the copied code
Install Python if you haven't already (version 2 or 3)
Start the web server using Python (python -m SimpleHTTPServer 8000 for version 2) and load 'http://localhost:8000/quickstart.html' into your web browser

For Google Apps Script: suggested deployment route to enable Android smart phone capability?

I have a nifty Google Apps Script app that I have developed. I would now like to port it to work on Android smart phones. Is there any suggested migration route to do this?
I know that Google Apps Script is already based on Google Web Toolkit, does that mean that I can use the same GUI widgets? For example the a vertical panel?
Thank You,
Commet
Do you mean installable Android Apps. If so, I have not come across yet anything which can port you GAS code to Android Apps.
If you mean a web application, You can access you published apps script application on your android phone via service URL using your android browser.
As Waqar mentioned, the best way is to have your GAS UI open up in the browser. And yes, Henrique is also right - not all UI elements are touch friendly.
Please also see an issue open for this - http://code.google.com/p/google-apps-script-issues/issues/detail?id=1092