Firstly install Brew on your MAC
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install PHP
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/php
- brew install php56
Firstly install Brew on your MAC
Then install PHP
First install Brew on your MAC
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install php70
mcrypt
: brew install mcrypt php70-mcrypt
brew install composer
const ynab = require("ynab"); | |
const ynabAPI = new ynab.API(process.env.YNAB_TOKEN); | |
const adMaioraBudgetId = process.env.BUDGET_ID; | |
const monoDebitAccountId = process.env.MONO_DEBIT_ACCOUNT_ID; | |
module.exports.handler = (event, context, callback) => { | |
const body = JSON.parse(event.body); | |
console.log('Event body: ', body); |