Skip to content

Instantly share code, notes, and snippets.

@ditn

ditn/actions.xml Secret

Last active May 30, 2018 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ditn/c285263e511dfa0307ecc29d4a2de2ef to your computer and use it in GitHub Desktop.
Save ditn/c285263e511dfa0307ecc29d4a2de2ef to your computer and use it in GitHub Desktop.
An example implementation of actions.xml
<?xml version="1.0" encoding="utf-8"?>
<actions>
<action intentName="actions.intent.GET_CRYPTOCURRENCY_PRICE">
<action-display label="Check crypto price"/>
<fulfillment
urlTemplate="https://adambennett.co.uk/prices/{?cryptocurrency,fiatcurrency}">
<parameter-mapping
urlParameter="cryptocurrency"
intentParameter="cryptocurrency.name"/>
<parameter-mapping
urlParameter="fiatcurrency"
intentParameter="target_monetary_spec.currency"/>
</fulfillment>
</action>
</actions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment