Skip to content

AMPlug Translate SDK Sample

Koda edited this page Mar 27, 2014 · 6 revisions

This is a sample plug-In to show how get the message content and make a call to a third part API in this case Google Translate.

Menu integration, the plguin will execute the call on the user input

- (NSMenuItem*) ampMenuActionItem:(NSArray*)messages

In this case the plugin will send the plain body of the mail to the google translation service

The rule plugin, the action triggered by the rule

- (NSNumber*) ampRuleActionItem:(AMPMessage*)message

Clone this wiki locally