Skip to content

harshjv/hey-siri-buy-bitcoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŸ Ask Siri to buy some bitcoin for you

This application lets you instruct your own Zebpay account to buy bitcoin via Siri ๐Ÿ‰

โš ๏ธ This application uses your own Zebpay account to perform the purchase. You are responsible for your own application instance.

โš ๏ธ Remember to safely withdraw your bitcoin back to your own wallet.

๐Ÿ“ Tutorial

Preview

Hey siri, buy some bitcoin for me

Prerequisites

  1. Vercel account
  2. Zebpay Developer account
  3. Shortcuts app

Environment variables

APP_PASSCODE=
APP_MAX_AMOUNT=
ZEBPAY_CLIENT_ID=
ZEBPAY_ACCESS_TOKEN=

Deploy your own

Deploy with Vercel

Create you shortcut manually

  1. Open Shortcuts app
  2. Tap on + icon on top right corner
  3. Tap on + icon on the screen to add actions
  4. Search for Ask for Input action & add it
  5. Change input type from Text to Number
  6. Edit prompt to For how much?
  7. Search for Get Contents of URL action & add it
  8. Set your buy function URL
  9. Click on Show More
  10. Change method to POST
  11. Click on Headers & then Add new header
  12. Set Key to X-Passcode & value to your APP_PASSCODE
  13. Change Request Body to Form
  14. Click on Add new field & select Text
  15. Set Key to amount
  16. Click on the value field, and select Provided Input
  17. Search for Show Result action & add it
  18. Name your shortcut Buy Bitcoin

Create your shortcut using link

  1. Open Settings app
  2. Open Shortcuts settings
  3. Toggle on Allow Untrusted Shortcuts
  4. Open Buy Bitcoin shortcut on your device

License

MIT