Showing posts with label Adobe AIR. Show all posts
Showing posts with label Adobe AIR. Show all posts
Google Account Authentication using ActionScript in Adobe AIRView Comments
Google Supports developers by providing lots of API for each and every service they provide. By using those APIs, developers can communicate with Google and get feeds from any of thier services by developing a web based application or a installable client application. Before starting to get feeds and post feeds to Google accounts from the application, the developers must get the user's Google account authenticated. To do that user credentials such as email id with password must be send to Google and if the credentials are correct then Google will send back a authorizing token using which developers can start getting feeds and process them.
To authenticate a user, use Google account API, that allow third party application to get limited access to a user's Google accounts for certain types of activities. The Google Authorization Service manages authentication, authorization, and access control to user accounts, subject to approval from the account holder. Google offers several account authorization APIs to accomodate different types of access. Google provides three types of access authorization methods. They are
Download the Full Code First send a http request to Google using HTTPService class with the user name and password by POST. Then scripts must be written to handle the result and failure. Explanation of the code:First all the neccessary information for making a request are set in the HTTPService method. Dont forget to give a valid email and password in the class, otherwise you cannot get authorization. Then the request is send only in the scripting part in the init() function with will be called when application load completes by setting the tag "applicationComplete="init()"". The handlers are already set in the mx tag to handle the result event and failure event. A success response contains the authorization token, labeled "Auth", in the body of the response. Your application must reference this token in each request to the Google service for this user. Additional cookies, labeled "SID" and "LSID", are not currently active and should not be used. A failure response contains an error code and a URL to an error page that can be displayed to the user. Check this links to get still more information from Google: Steps to compile the source code of ShareFireView CommentsShareFire is a simple but powerful news aggregator written in Adobe AIR. You can download the compiled version of ShareFire from ShareFire Home page. Using ShareFire you can share stories via AIM, Twitter, Facebook, MySpace, email and more with no copying and pasting, or dragging and dropping. And it even supports 16 different languages and mainly it is 100% open source. You can download the latest version of source for the project from Google Code. For doubts and discussion on this project you can find a busy active Google group. Now let me explain you how to compile the code of ShareFire that is recently renamed as apprise.
Apply the changes made by pressing the apply button and that's it. Run the program(ctrl+F11), you will see a window application running, thats the project. Enjoy editing the program and don't forget to comment on this post.
Subscribe to:
Posts (Atom)
About UsCategories
Followers |