Child pages
  • Incoming SMS
Skip to end of metadata
Go to start of metadata

Setting up a REST handler for incoming messages

You can register a REST endpoint for incoming messages by adding bean definitions to sms/pack/src/webapp/WEB-INF/external.xml

Example:

<bean id="abcRestCommand" class="org.sakaiproject.sms.logic.incoming.helper.SmsCommandRegisterHelper" init-method="init" >
<property name="incomingLogicManager" ref="org.sakaiproject.sms.logic.incoming.SmsIncomingLogicManager" />
<property name="toolKey" value="edn1" />
<property name="commands">
<list>
                <bean id="dfaq1" class="org.sakaiproject.sms.logic.command.SmsRestCommand">
                    <property name="commandKey" value="VNB"/>
                    <property name="enabled" value="true"/>
                    <property name="helpMessage" value="Usage: vnb sitename add your text here"/>
                    <property name="requiresSiteId" value="false"/>
                    <property name="restUrl" value="http://some.url/script/smsrest.php"/>
                    <property name="visible" value="false"/>
                </bean>
</list>
</property>
</bean>
  • No labels