Was thinking about this module today and thought it might be cool to use Rules to define when the calls are made instead of the set number of hooks (Node Save and User Save). That way you could define all the end points available, and then using Rules say when the end points would be called.

That way you could also have multiple nodes saved, and map any arguments to the node save call that you'd like.

Comments

mhrabovcin’s picture

Assigned: Unassigned » mhrabovcin
mitchell’s picture

Title: Rules Integration? » Add Rules Integration to Services Client
Issue tags: +rules integration

I'm not sure if "plugging" is kosher, but the approach I'm working on is a simple drupal_http_request() wrapper in #1703350: Action: Perform an HTTP request. If you guys are interested, I'd be happy to work with you on it.

Nick_vh’s picture

The conditions are a little more pluggable now, there are still some changes that need to happen to make this as generic as possible. Possibly we need to set a certain condition class and in that class you have some execute method that then executes whatever necessary. So rules would just be a condition class