Coder Social home page Coder Social logo

harshjv / hey-siri-buy-bitcoin Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 2.96 MB

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

Home Page: https://harshjv.com/blog/ask-siri-to-buy-some-bitcoin-for-you/

License: MIT License

JavaScript 97.57% Shell 2.43%
siri-shortcuts vercel bitcoin

hey-siri-buy-bitcoin's Introduction

๐ŸŒŸ 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

hey-siri-buy-bitcoin's People

Contributors

harshjv avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.