invite api integration to services

Events happening in the community are now at Drupal community events on www.drupal.org.
priyodevil's picture

Hi,

I am developing a flex based frontend to my site and am extensively using the services module. I use the amfphp module to communicate between drupal and my flex frontend. What I would like to do is expose the invite module (http://drupal.org/project/invite) which has it's own api to services so that I can invite people from within flex. I think this can be done by creating a service add-on for the services module. But unfortunately I dion't have the expertise to do the same. Can anyone please help?

This is the api for the invite module:

-- INVITE API --
128
129 The Invite module exposes hook_invite() that allows any module to react to the
130 invite lifecycle.
131
132 function hook_invite($op, $args) {
133 case 'invite':
134 An invitation has been successfully send.
135 $args['inviter']: The user account object of the person who did the
136 inviting.
137 $args['email']: The e-mail address of the user who got invited.
138 $args['code']: The tracking code of the invitation.
139
140 case 'escalate':
141 Invitee has accepted an invitation and has been promoted to the appropriate
142 user roles.
143 $args['invitee']: The user account object of the person who was invited.
144 $args['inviter']: The user account object of the person who did the
145 inviting.
146 $args['roles']: An array of roles the invited person has been escalated
147 to.
148
149 case 'cancel':
150 Inviter has cancelled an invitation.
151 $args['inviter']: The user account object of the person who did the
152 inviting.
153 $args['email']: The e-mail address of the user whose invitation got
154 cancelled.
155 $args['code']: The tracking code of the invitation.
156 }
157

Regards.

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: