<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[myNotifier - Medium]]></title>
        <description><![CDATA[myNotifier allows you to monitor all your applications and servers using push notifications. https://mynotifier.app ⚡️ - Medium]]></description>
        <link>https://medium.com/mynotifier?source=rss----573476109731---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>myNotifier - Medium</title>
            <link>https://medium.com/mynotifier?source=rss----573476109731---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 17:36:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/mynotifier" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[cURL — Push notifications to your own phone]]></title>
            <link>https://medium.com/mynotifier/curl-push-notifications-to-your-own-phone-e7d2c9252279?source=rss----573476109731---4</link>
            <guid isPermaLink="false">https://medium.com/p/e7d2c9252279</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Jonas A.]]></dc:creator>
            <pubDate>Mon, 28 Mar 2022 07:37:13 GMT</pubDate>
            <atom:updated>2022-03-28T07:37:13.497Z</atom:updated>
            <content:encoded><![CDATA[<h3>cURL — Push notifications to your own phone</h3><p><em>By combining cURL and the myNotifier API, you’ll be sending push notifications to yourself in no time</em></p><p><strong>myNotifier</strong></p><p>myNotifier is a simple API that lets you monitor your code with push notifications to yourself and a web dashboard. This can be helpful in a lot of ways including being notified about events in your code, errors, daily reminders, cron jobs. Basically, anything you can think of doing with code! ☝️</p><p><strong>Getting Started</strong></p><p>Getting started is no more than 2 simple steps and you’ll receive your first notification in 2 minutes.</p><ul><li>Sign up for myNotifier (it’s fast and free) and connect your phone</li><li>Write a cURL command and receive notifications</li></ul><p><strong>Creating an account</strong></p><ul><li>Go to <a href="https://www.mynotifier.app/">myNotifier</a> and create an account.</li><li>Download either the <a href="https://apps.apple.com/us/app/mynotifier-notifications/id1593172893">Apple Store</a> or <a href="https://play.google.com/store/apps/details?id=com.jjjam.mynotifier">Google Play Store</a> app to your phone.</li><li>Log in on the app using the email you used for signing up and connect your device by pressing ‘<strong>Add This Device</strong>’ under the ‘<strong>Profile</strong>’ tab.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*5sVNO1T-xAb3ky_G.jpeg" /><figcaption>Phones connected to your account</figcaption></figure><p>Now your phone is ready to receive a notification.</p><p>You can add multiple phones if you want more people to receive the same notifications.</p><p><strong>Pre-requisite</strong></p><p>In this tutorial I’ll not be explaining what cURL is and all of its features. If you want to know more about it and learn the ins and out, I would suggest you check out the docs <a href="https://curl.se/">here</a> ☝️</p><p>First of all, we need to make sure that you have cURL installed. You can do that by typing the below command in a terminal window.</p><pre>curl --version</pre><p>If not there, you can install it from <a href="https://curl.haxx.se/dlwiz/">here</a> ⚡️</p><p><strong>Sending POST requests with cURL</strong></p><p>For you to make a POST request, you need to type in the following line in a terminal window</p><pre>curl --header &#39;Content-Type: application/json&#39; -d &#39;{&quot;apiKey&quot;:&quot;****-****-****-****&quot;, &quot;message&quot;: &quot;My first cURL notification!&quot;, &quot;description&quot;: &quot;Awesome!&quot;}&#39; https://api.mynotifier.app</pre><p>By using the<strong> --header</strong> we can specify which type of content we want to send. In this case, it’s JSON.</p><p>And by using<strong> -d</strong> we can specify the data we want to send along to the API.</p><p>This command would result in something like this</p><pre>{&quot;message&quot;:&quot;something_went_wrong&quot;}</pre><p>That’s because you didn’t provide a valid apiKey.</p><p>You can get your own API key by logging in to the web app <a href="https://app.mynotifier.app/">here</a> and navigating to the ‘<strong>Account tab</strong>’ and pressing the ‘<strong>Reveal Api Key</strong>’ button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vqVaX3yvCqpPOH6H.png" /><figcaption>Account Tab</figcaption></figure><p>Copy the key to your clipboard by clicking the ‘<strong>&lt;Copy to clipboard&gt;</strong>’ button.</p><p>Now the key is in your clipboard and you can replace the ‘****-****-****-****’ with the apiKey.</p><p>Some extra properties you can send along.</p><ul><li>The ‘<strong>message</strong>’ and ‘<strong>description</strong>’ properties can be anything you want.</li><li>The ‘<strong>type</strong>’ property can be either ‘<strong>info</strong>’, ‘<strong>error</strong>’, ‘<strong>warning</strong>’, or ‘<strong>success</strong>’. It defaults to info if nothing is set.</li><li>The ‘<strong>body</strong>’ property can be whatever you want and can only be seen on the web app. Good for logging errors or something like that.</li></ul><p>Now the code is ready to be run and if everything is done correctly, you should be getting push notifications to the phone(s) you set up!⚡️</p><p>This should result in something like this.</p><pre>{“message”:”noti_created_successfully”,”noti”:”********some_id*******”}</pre><p>The id will of course be unique to your notification.</p><p>By navigating to the ‘<strong>Dashboard</strong>’ tab in the web app, you’ll be able to see every notification that was sent.</p><p>And that’s basically everything there is to it ☝️</p><p><strong>Closing words</strong></p><p>If you have any kind of problems, questions, or maybe some feedback for this tutorial, please contact me on <a href="https://twitter.com/thejonasme">Twitter </a>or comment on this post and I’ll respond ASAP. If you want to be a part of the growth of myNotifier and want updates on it, please give a follow ⚡️🙏</p><p>Any kind of claps, comments, or help by spreading the word would be greatly appreciated 😁</p><p>Some other tutorials you may like:</p><ul><li><a href="https://medium.com/p/feaeedcbaac1">Python Push Notifications To Your Phone</a></li><li><a href="https://medium.com/p/edc09b8a907e">6 Reasons why you need code monitoring</a></li></ul><p>Thank you for reading and as always, remember to keep on coding on 💙</p><p>All the best,</p><p>Jonas A.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7d2c9252279" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mynotifier/curl-push-notifications-to-your-own-phone-e7d2c9252279">cURL — Push notifications to your own phone</a> was originally published in <a href="https://medium.com/mynotifier">myNotifier</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python — Sending Push Notifications To Your Phone]]></title>
            <link>https://medium.com/mynotifier/python-sending-push-notifications-to-your-phone-feaeedcbaac1?source=rss----573476109731---4</link>
            <guid isPermaLink="false">https://medium.com/p/feaeedcbaac1</guid>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Jonas A.]]></dc:creator>
            <pubDate>Sun, 12 Dec 2021 20:51:19 GMT</pubDate>
            <atom:updated>2021-12-16T08:54:21.677Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python — Sending Push Notifications To Your Phone</h3><p><em>In this tutorial, I’ll talk about how to send push notifications to yourself using Python and the myNotifier API.</em></p><p><strong>myNotifier</strong></p><p>myNotifier is an API with the possibility to send push notifications to your mobile phone. This can be beneficial in many different circumstances such as monitoring your API or Saas product. You can also send server updates or updates from your custom python scripts. The possibilities are endless ☝️</p><p><strong>Getting Started</strong></p><p>Getting started is no more than 3 simple steps and can be done in less than 5 minutes.</p><ul><li>Sign up for myNotifier (It’s fast and free)</li><li>Write a few lines of Python code</li><li>Sending notifications</li></ul><p><strong>Sign Up</strong></p><ul><li>Head on over to <a href="https://www.mynotifier.app/">myNotifier</a> and create a free account. There’s a Pro plan as well but we won’t be needing that for today&#39;s purpose.</li><li>Download the app on the <a href="https://apps.apple.com/us/app/mynotifier-notifications/id1593172893">Apple Store</a> for IOS or <a href="https://play.google.com/store/apps/details?id=com.jjjam.mynotifier">Google Play Store</a> for android. Whichever one you own.</li><li>Log in on the app with the account you created earlier, and press ‘<strong>Add This Device</strong>’ under the ‘<strong>Profile</strong>’ tab.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*0x-H63jGaCwxqeI93jJAgA.jpeg" /><figcaption>You don’t need any more setup on your phone</figcaption></figure><p>Now the API knows which phone to send notifications to. You can add multiple phones by logging in to other phones and adding them as well.</p><p><strong>Write a few lines of Python code</strong></p><p>We’ll be using the Python module called ‘Requests’ to send HTTP requests to the API.</p><ul><li>If you don’t have it installed already, you can install it by running ‘<strong>pip3 install requests</strong>’ in the terminal of your computer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/269/1*lN2NPA1W33C62Wk4E3DzIw.png" /></figure><ul><li>Next up, create a new python file called ‘<strong>notification.py</strong>’ in your favorite code editor. I use VSCode but you can use whichever one you like.</li><li>Now it’s time to write the code. Write in the code below and we’ll go through it afterward.</li></ul><pre>import requests</pre><pre>requests.post(&#39;https://api.mynotifier.app&#39;, {</pre><pre>    &quot;apiKey&quot;: &#39;****-****-****-****&#39;,</pre><pre>    &quot;message&quot;: &quot;Our first notification!&quot;,</pre><pre>    &quot;description&quot;: &quot;This is cool&quot;,</pre><pre>    &quot;type&quot;: &quot;info&quot;, # info, error, warning or success</pre><pre>})</pre><ul><li>First of all, you need to provide your own <strong>apiKey</strong>. You can get yours by logging in to the web app <a href="https://app.mynotifier.app/">here</a> and going to the ‘<strong>Account tab</strong>’ and clicking ‘<strong>Reveal Api Key</strong>’.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T31fW78Nll_tHvedQUpPdA.png" /><figcaption>The account tab in the web app</figcaption></figure><ul><li>Paste in the API key instead of the ‘****-****-****-****’.</li><li>The ‘<strong>message</strong>’ and ‘<strong>description</strong>’ properties can be anything you want.</li><li>The ‘<strong>type</strong>’ property can be either ‘<strong>info</strong>’, ‘<strong>error</strong>’, ‘<strong>warning</strong>’, or ‘<strong>success</strong>’. It defaults to info if nothing is set.</li></ul><p>Now all the code is written and all we have left to do is run it⚡️</p><p><strong>Sending notifications</strong></p><p>Now you can run the code by typing ‘<strong>python3</strong> <strong>notification.py</strong>’ in the terminal in the directory where your file is located. If everything was done correctly you should now have your very first notification on your phone.</p><p>And you can see a history of all the notifications on the ‘<strong>Dashboard</strong>’ tab in the web app.</p><p>And that’s all there is to it ☝️</p><p>If you by any chance have any problems or have any questions or feedback for this tutorial, contact me on <a href="https://twitter.com/thejonasme">Twitter </a>or comment on this post and I’ll respond as soon as possible. Give a follow while you’re at it if you want to hear about updates on myNotifier and be a part of the growth ⚡️🙏</p><p>Any love in form of claps or comments on this blog post would also be greatly appreciated 😁</p><p>Thank you for reading and remember to keep on coding on 💙</p><p>All the best,</p><p>Jonas A.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=feaeedcbaac1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mynotifier/python-sending-push-notifications-to-your-phone-feaeedcbaac1">Python — Sending Push Notifications To Your Phone</a> was originally published in <a href="https://medium.com/mynotifier">myNotifier</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript — How to send mobile push notifications to yourself]]></title>
            <link>https://medium.com/mynotifier/how-to-send-push-notifications-to-yourself-7d96236e0777?source=rss----573476109731---4</link>
            <guid isPermaLink="false">https://medium.com/p/7d96236e0777</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Jonas A.]]></dc:creator>
            <pubDate>Wed, 17 Nov 2021 08:19:20 GMT</pubDate>
            <atom:updated>2022-03-29T07:58:00.303Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Use an integrated API push notification tool built for the best developer experience.</em></strong></p><p>In this post, I will show you how easily you can get started with myNotifier using JavaScript(or any other programming language). It’ll be an application that sends a customized API push notification to your phone or desktop.</p><p>This blog includes:</p><ul><li>Step by step guide on how to set it up</li><li>An interactive example that lets you test it out in the browser</li></ul><p>It is not required to have expert knowledge in programming but it’s a plus if you have some of the basics down. Other than that, you just need a modern web browser and a working internet connection.</p><p>If you somehow get stuck or if there’s something you don’t understand, don’t be afraid to contact me on <a href="https://twitter.com/thejonasme">Twitter</a></p><h3>Let’s get started</h3><p>I created a little boilerplate that doesn’t do anything yet. You can use this to get started and work directly on it or copy and paste it into your project if you prefer that.</p><p><a href="https://codepen.io/thejonasme/pen/YzVyNLw">You can see the boilerplate here</a></p><p>One of the most common use cases for JavaScript is for making dynamic web pages in the browser. This allows you to change data/design when a user performs some kind of action. JavaScript can also be used for creating servers, mobile apps, and desktop applications. What we’re building today can also be used in a JavaScript mobile app, node server, or desktop app. Today we’re focusing on the browser for sake of simplicity and quickly putting it into practice.</p><h3>Creating event handlers</h3><p>For now, we have a button, that doesn’t do anything when pressed. Let’s change that.</p><p>By adding an event listener on the button click, we can choose what’s going to happen when the button is pressed. You do that by adding the code below to the JavaScript tab in the CodePen.</p><pre>const btn = document.getElementById(&#39;js-notification&#39;)</pre><pre>btn.addEventListener(&#39;click&#39;, () =&gt; {<br>  alert(&#39;You clicked me!&#39;)<br>})</pre><p><a href="https://codepen.io/thejonasme/pen/XWRmpqO">Here’s the updated code</a></p><p>What we’re doing here is taking the button object by the button id tag and adding an event listener when it’s pressed. For now, it creates an alert box that says ‘You clicked me’!</p><p>Let’s change that now.</p><h3>fetch</h3><p>fetch is a web API that is built into JavaScript that lets you make HTTP requests. We’re going to be using that today to build our application. Using fetch is one of the easiest ways to make these requests, but you could also use tools like jQuery, Axios, and many more.</p><p>The task of this application is to send a notification when the button is clicked. We’ll be using fetch and the myNotifier API to do this.</p><h3>myNotifier API</h3><p>The myNotifier API lets you create notifications when a new event occurs. This could for example be when a new user buys a subscription from your service or when a server is experiencing some trouble. This can be done by sending an HTTP request with the right information to our API.</p><p>Here’s an example using JavaScript and fetch:</p><pre>fetch(&#39;https://api.mynotifier.app&#39;, {<br>  method: &#39;POST&#39;,<br>    headers: {<br>      &#39;Content-Type&#39;: &#39;application/json&#39;, <em>// To let the server know that we&#39;re sending JSON data</em><br>  },<br>  body: JSON.stringify({<br>    apiKey: &#39;xxxx-xxxx-xxxx-xxxx&#39;, <em>// A unique key you get when signing up</em><br>    message: &quot;New payment!&quot;, <em>// The message you want to send to yourself/team</em><br>    description: &quot;A payment off $99 has been made&quot;, <em>// A more descriptive message. It&#39;s optional</em><br>    type: &quot;success&quot;, <em>// info, error, warning or success</em><br>    project: &quot;xxxxxx&quot; <em>// If you have more projects on your account then you can specify the project. This is optional.</em><br>  }}),<br>})</pre><p>This would result in this on the dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sextqR1TUg0Fnlp9.png" /></figure><p>And this on the phone:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6VgjVg0q_sPmYlGeG9HCoA.png" /></figure><p>Very nice!</p><p>Let’s implement it to our CodePen now.</p><h3>Setting up myNotifier</h3><p>First of all, you need to set up myNotifier. Luckily that is done very quickly.</p><ol><li>Create an account <a href="https://www.mynotifier.app/">here</a>. Takes just a second.</li><li>Go to the <strong>‘Account’</strong> tab after you logged in and get your API Key.</li><li>Download the app on the <a href="https://apps.apple.com/us/app/mynotifier-notifications/id1593172893">Apple Store</a> for IOS or <a href="https://play.google.com/store/apps/details?id=com.jjjam.mynotifier">Google Play Store</a> for android.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t120Fy2-_Ni0wRyF.png" /></figure><ol><li>Click on the <strong>‘Reveal Api Key’</strong> to see it.</li><li>Now you know where your API key is when you need it.</li><li>You can also turn on notifications on your desktop here. Note that if you want notifications on your phone, you need to download the app, log in with the account you created earlier, and press ‘<strong>Add This Device</strong>’ under the ‘<strong>Profile</strong>’ tab.</li><li>If you want to create a project then you can go to the <strong>‘Projects’</strong> tab in the menu and create a project and get the project id. Otherwise, it just shows up in the <strong>‘Show All’</strong> tab in the Dashboard. That’s also completely fine.</li></ol><h3>Implementing fetch to the myNotifier API</h3><p>Now you’re all set up, so let’s put it all together in the CodePen!</p><pre>const btn = document.getElementById(&#39;js-notification&#39;)</pre><pre>btn.addEventListener(&#39;click&#39;, () =&gt; {<br>  fetch(&#39;https://api.mynotifier.app&#39;, {<br>    method: &#39;POST&#39;,<br>    headers: {<br>      &#39;Content-Type&#39;: &#39;application/json&#39;,<br>    },<br>    body: JSON.stringify({<br>      apiKey: &#39;xxxx-xxxx-xxxx-xxxx&#39;, <em>// Input your own api key here.</em><br>      message: &#39;New payment!&#39;, <em>// The message you want to send to yourself/team.</em><br>      description: &#39;A payment off $99 has been made&#39;, <em>// A more descriptive message. It&#39;s optional.</em><br>      type: &#39;success&#39;, <em>// info, error, warning or success</em><br>      project: &#39;&#39;, <em>// If you have more projects on your account then you can specify the project. This is optional.</em><br>    }),<br>  })<br>})</pre><p><a href="https://codepen.io/thejonasme/pen/gOWagjm">Here’s the final code.</a></p><p>Now go into your dashboard <a href="https://app.mynotifier.app/">here </a>and see what it looks like. If you have done everything correctly, then you should have gotten an update and notification if you set that up. Good job!</p><h3>Conclusion</h3><p>Now we’re done and you know how easy it is to set up myNotifier to get notified of changes or updates in your application. I hope you learned a lot from it. I’m looking forward to seeing what people are going to be using it for. Maybe you have a client-side that needs to send updates, an API that runs cron jobs, a server, or maybe a raspberry pi.</p><p>If you have any questions or feedback for this tutorial, contact me on <a href="https://twitter.com/thejonasme">Twitter </a>and I’ll respond as soon as possible. Give a follow while you’re at it if you want to hear about updates on myNotifier and be a part of the growth.</p><p>Thanks for reading and keep coding on! 💙</p><p>Jonas</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d96236e0777" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mynotifier/how-to-send-push-notifications-to-yourself-7d96236e0777">JavaScript — How to send mobile push notifications to yourself</a> was originally published in <a href="https://medium.com/mynotifier">myNotifier</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>