-
-
Save ditn/c285263e511dfa0307ecc29d4a2de2ef to your computer and use it in GitHub Desktop.
An example implementation of actions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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