{
  "formatVersion": "1.0",
  "id": "com.youmindhub.example.phone",
  "version": "1.0",
  "name": "Send to Phone",
  "description": "Push the text to your phone with ntfy. Step 1 turns it into JSON, step 2 sends it with your secret topic.",
  "localizations": {
    "de": {
      "name": "An Handy senden",
      "description": "Schickt den Text per ntfy aufs Handy. Schritt 1 macht JSON daraus, Schritt 2 sendet es mit deinem geheimen Thema."
    },
    "es": {
      "name": "Enviar al móvil",
      "description": "Envía el texto a tu móvil con ntfy. El paso 1 lo convierte en JSON y el paso 2 lo envía con tu tema secreto."
    },
    "fr": {
      "name": "Envoyer au téléphone",
      "description": "Envoie le texte sur votre téléphone avec ntfy. L’étape 1 le convertit en JSON, l’étape 2 l’envoie avec votre sujet secret."
    },
    "it": {
      "name": "Invia al telefono",
      "description": "Invia il testo al telefono con ntfy. Il passaggio 1 lo trasforma in JSON, il passaggio 2 lo invia con il tuo argomento segreto."
    },
    "ja": {
      "name": "スマホに送信",
      "description": "ntfy でテキストをスマホに送ります。ステップ 1 で JSON にし、ステップ 2 で秘密のトピックに送信します。"
    },
    "ko": {
      "name": "휴대폰으로 보내기",
      "description": "ntfy로 텍스트를 휴대폰에 보냅니다. 1단계에서 JSON으로 바꾸고, 2단계에서 비밀 토픽으로 보냅니다."
    },
    "nl": {
      "name": "Naar telefoon sturen",
      "description": "Stuurt de tekst via ntfy naar je telefoon. Stap 1 maakt er JSON van, stap 2 verstuurt het met je geheime onderwerp."
    },
    "zh-Hans": {
      "name": "发送到手机",
      "description": "用 ntfy 把文字推送到手机。第 1 步转成 JSON，第 2 步用你的秘密主题发送。"
    },
    "zh-Hant": {
      "name": "傳送到手機",
      "description": "用 ntfy 把文字推送到手機。第 1 步轉成 JSON，第 2 步用你的秘密主題傳送。"
    }
  },
  "group": "Examples",
  "keywords": [
    "phone",
    "ntfy"
  ],
  "argument": "required",
  "argumentType": "text",
  "argumentHint": "text",
  "symbol": "iphone",
  "successNotice": "none",
  "successMessage": "",
  "failureNotice": "error",
  "failureMessage": "",
  "copyOutput": false,
  "steps": [
    {
      "kind": "appleScript",
      "language": "javaScript",
      "script": "function run(argv) {\n  return JSON.stringify(argv.join(\" \"))\n}",
      "timeout": 10
    },
    {
      "kind": "http",
      "http": {
        "method": "POST",
        "url": "https://ntfy.sh/",
        "headers": "Content-Type: application/json",
        "body": "{\"topic\": \"{{secret:NTFY_TOPIC}}\", \"title\": \"AppPad\", \"message\": {{input}}}"
      },
      "timeout": 20
    }
  ],
  "permissions": {
    "httpHosts": [
      "ntfy.sh"
    ],
    "secrets": [
      "NTFY_TOPIC"
    ]
  }
}
