This is a discussion and working group for anyone interested in the Services module and related modules. This module was created out of a need for a standardized solution of integrating external applications with Drupal, specifically Flash and Flex applications. Visit the issues page for all bug reports. Also visit the Services Handbook for information and examples.
upload an cck image with servuces
hi,
im trying to populate a node using node.save service.
Does anyone manged to populate a cck image field through flash.
i know how to upload a file directly to the server as seen in: http://www.flash-db.com/Tutorials/upload/index.php, but I'd really like to use the functionality of the upload module.
any suggestions?
thaks,
gavri
How to get a RecordSet?
How does one send a RecordSet to Flash using Services and AMFPHP? Not just a result Object, but specifically a RecordSet?
I'm using Flash 8 to consume a views service via AMFPHP 1.9 beta 2. I used the example code from the Services Flash 8 Tutorial. The result contains the data I want, but it doesn't have any of the methods that the RecordSet class provides, such as setDeliveryMode( ), getColumnNames( ), sort( ), etc. ( ActionScript 2.0 Remoting API Reference)
Read moreEncoding problems
Hi,
I ran into a problem with encodings. when I'm calling my method throw drupal admin interface it gets all the data I need in correct encoding, but when I'm calling same method throw the flash I'm getting results in wrong encoding, so it's unreadable. I'm getting nodes that are written in russian language
How can it be fixed?
Thank for the help in advance
Read moreCCK Date Field with node.save
I've run into a problem with trying to update a CCK date field using the node.save. Here is the node.load so you can see the overall structure of our event node
stdClass Object
(
[nid] => 49
[vid] => 50
[type] => event
[status] => 1
[created] => 1185652917
[changed] => 1185652917
[comment] => 2
[promote] => 0
[sticky] => 0
[revision_timestamp] => 1185652917
[title] => Dang Drupal Date Field
[body] => Testing from Drupal Entry
[teaser] => Testing from Drupal Entry
[log] =>
[format] => 1
[uid] => 1
[name] => whoelse
[picture] =>
[data] => a:0:{}
AMFPHP Server Updated!
The AMFPHP Server module has been updated to now require AMFPHP 1.9 beta 2. Let me know if any of you find any problems.
http://drupal.org/project/amfphp
Scott
Read moreNew server module - JSON server!
http://drupal.org/project/json_server
Update: I am now writing about it!
The JSON server is a way to integrate services with JSON. You call a simple function, Drupal.service, to execute a service for you, in the following way:
Read moreDrupal.service('service.name',
{api_key: "123461823762348756293", sessid: "sdfjahsldjfhlaksuertybsi", extra_parameter: "asdfasdf", other_parameter: ["nodes", "are", "good"]},
function(status, data) {
if(status == false) {
alert("FATAL ERROR!!!!!");
}
else {
alert(data);
}
}
);
Learn More About Adobe Flex at FlexCamp in San Francisco
This isn't yet public information, but I wanted to give this group a chance to register for the event before we open it up to the public...
The Adobe Flex team is hosting on a one night event in July that will allow developers to learn more about Adobe Flex and the upcoming Flex 3 release. The event is being called Flex Camp, and is scheduled for July 27th, at the Adobe San Francisco office, from 5:00 PM to 11:30 PM or so.
Read moreEmbed process should be like forms api?
In writing SWF Tools I attempted to follow some design patterns that would make the embedding aspect of it generic. The embedding logic is there, but it's surrounded by a lot of unreleted code. So with the benefit of hindsight, here is a run-through of an "Embed API". Much of this is simply cloned Forms API.
Read moreFlash and Webform module - custom service
Hi,
I'm new to Drupal, and trying to set up a custom service.
I have some questionnaires built with the Webform module. I'd like to use a Flash form interface where users have the Flash plugin. So i'm trying to write a custom service to hook Flash up to the Webform database tables.
The main problem I have is that to save the form data I need to pass the $form_id from Flash -> to the service -> to a function in the Webform module. $form_id doesn't seem to be available when creating the page with the form, so I can't pass it to the Flash movie in the embed code.
Read moreCan you create a flash player?
I recently headbutted my wife's Cartoon Smart flash tutorials long enough to create two extremely simple flash players: mp3 and flv. If you look in the FLAs, I've limited the actionscript to the bare minimum.
But that's as far as I can realistically go. So, calling Flash devs who might be lurking: express your intent right here. I can handle the review and commits if you think you can improve these players and are willing for your contributions to be GPL and Drupal housed.
Read moreReturning a RecordSet to Flash
UPDATE: I've confirmed that it is, indeed, the Drupal module breaking this functionality. Issue is located here: http://drupal.org/node/146390
In the past version of AMFPHP, I returned a recordset to Flash and Flash received/manipulated it fine (in other words, I only have db_query, and omit the mysql_fetch_* step before passing back to Flash).
Now, Flash doesn't believe it's receiving anything.
Also, it seems this may be a general AMFPHP problem:
http://www.5etdemi.com/blog/archives/2007/01/amfphp-19-beta-2-ridiculous...
Should there be a separate "Flash" group?
simple REST server?
I've got a project where I am integrating Drupal with a third party service (a video upload/transcode/hosting provider, kind of a white-label YouTube: twistage.com)... when something updates at that service they want to ping my server @ a URL I designate with some simple key/value pairs, and I want to act on that ping.
Services seems like a perfect fit, except: a) XMLRPC and AMFPHP seem to be the only servers pre-written; and b) I haven't grokked the server part of the services equation to author what seems like a super-simple server - one that only responds to $_REQUEST variables.
Read moreScreencasts!
At last, I give you two screencasts to help you get started with Services. The first takes you through the development of a custom service module. The second shows you how to build and connect a Flex app to Drupal using Services.
Enjoy!
Screencast 1 - Overview and Creating a Custom Service
Screencast 2 - Flex Recipe Application
Read moreFlash/Flex and Yahoo Pipes
I've been exploring a bit into Yahoo Pipes and came across this Flex Based Mashup of last.fm and Youtube. Having seen this, I'm thinking there are all sorts of possibilities for this type of integration (by those who know their way around these applications).
Read moreStoring javascript preferences
As part of SWF Tools you can embed Flash into the webpage in 2 obvious ways:
- directly embedded into the html.
- with a flash replacement technique (eg. SWFObject, jquery.flash.js, and UFO to come)
So, say my choice, as administrator, is SWFObject. But what if the user has javascript turned off? I think the result is no flash (even though the use might want to see it).
Read moreSWF Tools - pwning Flash player integration
Hiya
(Since there is no specific Flash group, I'd like to post this to the Services group which, I assume, attracts some flash developers. Also, Cross posted in the forums.)
I'm getting close to doing an official release of SWF Tools. The goal of SWF Tools is to standardize Flash embedding and replacement code for Drupal. Every-so-often, a new coder commits their own slice of Flash to the repository. Usually it offers only a small subset of possible goodness, and usually with no opportunity to integrate.
Read moreSearch Engine + flash/flex
Update: proof of concept + source code available (for flash/AS2)
Hi all,
I would like to inquiry on the current status of flash/flex search engine indexing thru drupal!
As with the addition of the services module in drupal, a couple of blogs mentioned that Mr. Nelson had made a site (or proof of concept) of it, but the link to the site was removed by request of the company (if I recall well).
I assumed that this proof of concept would pop up here, but did not see anything from it since then.
"This by Them" needs more of "Them" - Freelancers Wanted!
My company, This by Them (about a year old now) is in demand and we need some help. I'm looking to make some connections with freelancers that we can bring in on projects as needed.
We would get along if you have most or all of these skills, in order of importance:
Drupal
* Installation and configuration expert
* Understanding of and experience with CCK and Views modules, as well as other main contrib modules
* Theming
* Module development and general understanding of Drupal API and hooks
Non-Drupal
* PHP
* XHTML + CSS
* Flash, actionscripting, etc.
* Ruby on Rails
On consuming web services
This is all great for exposing Drupal as web services, but consuming web services still eludes me. For instance, I have an LDAP directory exposed via SOAP and want to build a client to search and list directory entries from within Drupal. Am I better off making a homegrown "php snippet" solution, or am I missing something that the Services module already provides?
Read more