Drupal, Flash and web services

Session Number: 
8
Time slot: 
H: Saturday 3:30 pm - 4:45 pm
Room: 
Large 2 - 728 (100+)

An overview of communication between Drupal and Flash, using the services module.

-How the services module works
-Using Flash / Flex to view and edit Drupal content

4.47619
Average: 4.5 (21 votes)

Nice post about web

Nice post about web services. I like your blog very much because it has very interesting articles of different topics like testking, test king and testking VCP-410 and their tips and tricks. I am a very big googler and search on different topics. Between searching i found your nice blog. Thanks for your this great blog.

Secondly, I got to thinking

Secondly, I got to thinking about all these site-specific applications -- like Twhirl that was bought by Seesmic. So, if we had some basic standards about this stuff, it would be simplistic to have one app that let us monitor / notify / update any of these systems mortgage calculator. Yes, there will ALWAYS be websites that have more complex APIs with more features -- that are only accessible by implmenting *their* API to talk to them.

But for thousands of other community websites, built in Drupal, WordPress, Joomla, or what have you -- you suddenly have the same rich access to applications as the big guys. How many websites would encourage their users to install Flock or Twhirl if it supported *their* website?

Oh, and I'm completely skipping the linked data / RDF / Semantic Web factor of having community websites expose some part of their social graph, or at least make it available for querying by people that have the right credentials health insurance.

OK, so how does this look to the end user? I'll use Flock as an example, since I've got agreement in principle from them that they'll work with me on this, including help in defining some of the formats.

1. User surfs to community website where they already have an account (for simplicity's sake, we'll pretend a session is still open)
2. Flock detects a website that has a social graph available because of a header link that looks something like this:

(Note the user ID in there, because the user already has a current session open)
3. Flock does it's fun in browser slide down that says something like "This website supports a people bar. Would you like to add it?"
4. If the user clicks on "yes", then Flock initiates an OAuth request to be allowed to a) fetch the current user's social graph file and b) take actions on behalf of the user such as setting their status or sending a message/poking/whatever another user on the site
5. The user acknowledges the OAuth request and clicks some allow buttons
6. Voila! A fantastic site specific "people bar" right in your Flock browser real estate

So, that was a VERY Flock specific flow, but as I mentioned with Twhirl up above, absolutely no reason that you couldn't do the same thing with those type of people notifier on your desktop apps / widgets / etc. -- just start by typing in the URL of the website, the app would go and discover the social graph link and/or initiate an OAuth request to authenticate, and all of a sudden you're directly monitoring the different community websites you're a part of directly. Bonus points to websites that expose the social graph as an XMPP Pub Sub endpoint so these apps don't need to poll constantly insurance.

Mono

Rob Loach's picture

Hi Neal,

I'll put together a demonstration of using Services with Mono (C#/VB.NET/etc) for a demonstration of something using services outside of the web browser. Thanks for jumping the gun on this one. If I knew Air, I'd use Air, but unfortunately I don't, so Mono and GTK# will have to do.

Also note that an official release of Services 0.8 is being released by the security team soon, so make sure to update your Services module. It makes it so that service calls require a secure user authentication. So be sure that when you make service calls, you use user.login to create a secure session before making the calls.

This presentation will be a true test whether 0.8 works! :-)

Rob